Home Plugin documentation Hooks and functions Functions pip_is_layout()

 

 

Here we go!

 

pip_is_layout()

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 field group is a layout or a classic field group

/**
 * Is a layout
 *
 * @param $post
 *
 * @return mixed
 */
function pip_is_layout( $post ) {
    return acf_get_instance( 'PIP_Layouts' )->is_layout( $post );
}

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

or you think a specific topic deserve more informations?

 

Wave to bottom