/** * Determine if the current view should contain an entry footer. * * @since 1.0.0 * @access public * @return bool */ function carelib_has_entry_footer() { $has_footer = false; if (carelib_has_entry_footer_meta()) { $has_footer = true; } return (bool) apply_filters("{$GLOBALS['carelib_prefix']}_has_entry_footer", $has_footer); }
/** * Add a custom hook for the entry footer if the current view has an entry footer. * * @since 1.0.0 * @access public * @return void */ function carelib_entry_footer_meta() { if (carelib_has_entry_footer_meta()) { do_action("{$GLOBALS['carelib_prefix']}_entry_footer_meta"); } }