cft_
cft_
Appears in: custom-field-template.2.4, custom-field-template.2.4.3, custom-field-template.2.4.4, custom-field-template.2.4.5, custom-field-template.2.4.7, custom-field-template.2.4.8, custom-field-template.2.4.9, custom-field-template.2.5, custom-field-template.2.5.1, custom-field-template.2.5.2, custom-field-template.2.5.3, custom-field-template.2.5.4, custom-field-template.2.5.6, custom-field-template.2.5.7, custom-field-template.2.5.8, custom-field-template.2.5.9, custom-field-template.2.6.1, custom-field-template.2.6.5, custom-field-template.2.7.4
Hook Type: filter
Displaying hooks found in version: custom-field-template.2.7.4apply_filters('cft_') is found 4 times:
- /custom-field-template.php line 344534413442344334443445344634473448344934503451
foreach
(
$save_value
as
$title
=>
$values
) :
unset(
$delete
);
if
(
empty
(
$values
) )
break
;
if
(
count
(
$values
) == 1 ) :
if
( !add_metadata(
'post'
,
$id
,
$title
, apply_filters(
'cft_'
.rawurlencode(
$title
),
$values
[0]), true ) ) :
if
(
count
(
$this
->get_post_meta(
$id
,
$title
, false))>1 ) :
delete_metadata(
'post'
,
$id
,
$title
);
add_metadata(
'post'
,
$id
,
$title
, apply_filters(
'cft_'
.rawurlencode(
$title
),
$values
[0]) );
else
:
update_metadata(
'post'
,
$id
,
$title
, apply_filters(
'cft_'
.rawurlencode(
$title
),
$values
[0]) );
endif
;
- /custom-field-template.php line 344834443445344634473448344934503451345234533454
if
(
count
(
$values
) == 1 ) :
if
( !add_metadata(
'post'
,
$id
,
$title
, apply_filters(
'cft_'
.rawurlencode(
$title
),
$values
[0]), true ) ) :
if
(
count
(
$this
->get_post_meta(
$id
,
$title
, false))>1 ) :
delete_metadata(
'post'
,
$id
,
$title
);
add_metadata(
'post'
,
$id
,
$title
, apply_filters(
'cft_'
.rawurlencode(
$title
),
$values
[0]) );
else
:
update_metadata(
'post'
,
$id
,
$title
, apply_filters(
'cft_'
.rawurlencode(
$title
),
$values
[0]) );
endif
;
endif
;
elseif
(
count
(
$values
) > 1 ) :
$tmp
=
$this
->get_post_meta(
$id
,
$title
, false );
- /custom-field-template.php line 345034463447344834493450345134523453345434553456
if
(
count
(
$this
->get_post_meta(
$id
,
$title
, false))>1 ) :
delete_metadata(
'post'
,
$id
,
$title
);
add_metadata(
'post'
,
$id
,
$title
, apply_filters(
'cft_'
.rawurlencode(
$title
),
$values
[0]) );
else
:
update_metadata(
'post'
,
$id
,
$title
, apply_filters(
'cft_'
.rawurlencode(
$title
),
$values
[0]) );
endif
;
endif
;
elseif
(
count
(
$values
) > 1 ) :
$tmp
=
$this
->get_post_meta(
$id
,
$title
, false );
if
(
$tmp
) delete_metadata(
'post'
,
$id
,
$title
);
foreach
(
$values
as
$val
)
- /custom-field-template.php line 345734533454345534563457345834593460346134623463
elseif
(
count
(
$values
) > 1 ) :
$tmp
=
$this
->get_post_meta(
$id
,
$title
, false );
if
(
$tmp
) delete_metadata(
'post'
,
$id
,
$title
);
foreach
(
$values
as
$val
)
add_metadata(
'post'
,
$id
,
$title
, apply_filters(
'cft_'
.rawurlencode(
$title
),
$val
) );
endif
;
endforeach
;
if
( !
empty
(
$tags_input
) &&
is_array
(
$tags_input
) ) :
foreach
(
$tags_input
as
$tags_key
=>
$tags_value
) :
if
(
class_exists
(
'SimpleTags'
) &&
$tags_key
==
'post_tag'
) :