acf_filter_post_id

Acf_filter_post_id().

Description

acf_filter_post_id( $post_id ); 

This is a deprecated function which is now run through a filter

Parameters (1)

0. $post_id
The post id.

Usage

  1. if ( !function_exists( 'acf_filter_post_id' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'advanced-custom-fields/core/api.php'; 
  3.  
  4. // The post id. 
  5. $post_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = acf_filter_post_id($post_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/core/api.php  
  1. function acf_filter_post_id( $post_id ) 
  2. return apply_filters('acf/get_post_id', $post_id );