ACF_Admin::current_screen
Adds custom functionality to "ACF" admin pages.
Method of the class: ACF_Admin{}
No Hooks.
Returns
null. Nothing (null).
Usage
$ACF_Admin = new ACF_Admin(); $ACF_Admin->current_screen( $screen );
- $screen(required)
- .
Changelog
| Since 5.9.0 | Introduced. |
ACF_Admin::current_screen() ACF Admin::current screen code ACF 6.0.4
function current_screen( $screen ) {
// Determine if the current page being viewed is "ACF" related.
if ( isset( $screen->post_type ) && $screen->post_type === 'acf-field-group' ) {
add_action( 'in_admin_header', array( $this, 'in_admin_header' ) );
add_filter( 'admin_footer_text', array( $this, 'admin_footer_text' ) );
$this->setup_help_tab();
}
}