Home Plugin documentation Hooks and functions Functions pip_is_layout_screen()

 

 

Here we go!

 

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();
}

You didn’t find the answer you were looking for?

or you think a specific topic deserve more informations?

 

Wave to bottom