Home Plugin documentation Hooks and functions Functions get_pip_footer()
get_pip_footer()
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.
Get footer from Site Template
/**
* Get flexible footer content
*
* @param bool $echo
*
* @return false|string|void
*/
function get_pip_footer( $echo = true ) {
$pip_flexible_footer = acf_get_instance( 'PIP_Flexible_Footer' );
$pip_pattern = acf_get_instance( 'PIP_Pattern' );
if ( $echo ) {
echo get_flexible( $pip_flexible_footer->get_flexible_footer_field_name(), $pip_pattern->pattern_post_id );
} else {
return get_flexible( $pip_flexible_footer->get_flexible_footer_field_name(), $pip_pattern->pattern_post_id );
}
}
Our home port
15 Rue Cavenne, 69007 Lyon
And from everywhere in the world thanks to Hangout and Skype !
Useful links