Home Plugin documentation Hooks and functions Functions pip_is_layout_screen()
pip_is_layout_screen()
Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don’t provide support for code customizations or 3rd party development.
Check if current admin screen is a layout single page (edition page of single layout) or a listing of layouts (edit.php?post_type=acf-field-group&layouts=1).
/**
* Is layout(s) screen
*
* @return mixed
*/
function pip_is_layout_screen() {
return acf_get_instance( 'PIP_Layouts' )->is_layout_screen();
}
Our home port
15 Rue Cavenne, 69007 Lyon
And from everywhere in the world thanks to Hangout and Skype !
Useful links