ACF_Local_Meta::__construct
__construct
Sets up the class functionality.
Method of the class: ACF_Local_Meta{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ACF_Local_Meta = new ACF_Local_Meta(); $ACF_Local_Meta->__construct();
Changelog
| Since 5.8.0 | Introduced. |
ACF_Local_Meta::__construct() ACF Local Meta:: construct code ACF 6.8.8
function __construct() {
// add filters
add_filter( 'acf/pre_load_post_id', array( $this, 'pre_load_post_id' ), 1, 2 );
add_filter( 'acf/pre_load_meta', array( $this, 'pre_load_meta' ), 1, 2 );
add_filter( 'acf/pre_load_metadata', array( $this, 'pre_load_metadata' ), 1, 4 );
}