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
    		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
    			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
    					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
    			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' ) :