acf_third_party::__construct
__construct
This function will setup the class functionality
Method of the class: acf_third_party{}
No Hooks.
Returns
null. Nothing (null).
Usage
$acf_third_party = new acf_third_party(); $acf_third_party->__construct();
Changelog
| Since 5.0.0 | Introduced. |
acf_third_party::__construct() acf third party:: construct code ACF 6.0.4
function __construct() {
// Tabify Edit Screen - http://wordpress.org/extend/plugins/tabify-edit-screen/
if ( class_exists( 'Tabify_Edit_Screen' ) ) {
add_filter( 'tabify_posttypes', array( $this, 'tabify_posttypes' ) );
add_action( 'tabify_add_meta_boxes', array( $this, 'tabify_add_meta_boxes' ) );
}
// Post Type Switcher - http://wordpress.org/extend/plugins/post-type-switcher/
if ( class_exists( 'Post_Type_Switcher' ) ) {
add_filter( 'pts_allowed_pages', array( $this, 'pts_allowed_pages' ) );
}
// Event Espresso - https://wordpress.org/plugins/event-espresso-decaf/
if ( function_exists( 'espresso_version' ) ) {
add_filter( 'acf/get_post_types', array( $this, 'ee_get_post_types' ), 10, 2 );
}
// Dark Mode
if ( class_exists( 'Dark_Mode' ) ) {
add_action( 'doing_dark_mode', array( $this, 'doing_dark_mode' ) );
}
}