cft_

cft_

Hook Type: filter

See hook in core

Displaying hooks found in version: custom-field-template.2.7.4

apply_filters('cft_') is found 4 times:

  • /custom-field-template.php line 3445
    3441
    3442
    3443
    3444
    3445
    3446
    3447
    3448
    3449
    3450
    3451
    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 3448
    3444
    3445
    3446
    3447
    3448
    3449
    3450
    3451
    3452
    3453
    3454
    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 3450
    3446
    3447
    3448
    3449
    3450
    3451
    3452
    3453
    3454
    3455
    3456
            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 3457
    3453
    3454
    3455
    3456
    3457
    3458
    3459
    3460
    3461
    3462
    3463
        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' ) :