Home Plugin documentation Hooks and functions Functions pip_get_layouts()
pip_get_layouts()
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.
Retrieve the field groups informations of all the layouts as multidimensionnal array.
Parameter filter is to retrieve only a specific index of the layouts instead of all the data
/**
* Get layouts
*
* @param false $filter
*
* @return mixed
*/
function pip_get_layouts( $filter = false ) {
return acf_get_instance( 'PIP_Layouts' )->get_layouts( $filter );
}
Our home port
15 Rue Cavenne, 69007 Lyon
And from everywhere in the world thanks to Hangout and Skype !
Useful links