acf_third_party::__construct
This function will setup the class functionality
Метод класса: acf_third_party{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$acf_third_party = new acf_third_party(); $acf_third_party->__construct();
Список изменений
| С версии 5.0.0 | Введена. |
Код acf_third_party::__construct() acf third party:: construct ACF 6.4.2
public 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' ) );
}
}