Home Plugin documentation Hooks and functions Functions pip_get_layouts()



Here we go!



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

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

or you think a specific topic deserve more informations?


Wave to bottom