本文整理匯總了PHP中Tribe__Events__Template_Factory::hooks方法的典型用法代碼示例。如果您正苦於以下問題:PHP Tribe__Events__Template_Factory::hooks方法的具體用法?PHP Tribe__Events__Template_Factory::hooks怎麽用?PHP Tribe__Events__Template_Factory::hooks使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Tribe__Events__Template_Factory
的用法示例。
在下文中一共展示了Tribe__Events__Template_Factory::hooks方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: hooks
protected function hooks()
{
parent::hooks();
if (tribe_is_showing_all()) {
add_filter('tribe_get_template_part_path_modules/bar.php', '__return_false');
}
}
示例2: hooks
public function hooks()
{
parent::hooks();
add_action('embed_head', array($this, 'embed_head'));
}
示例3: hooks
/**
* Add any special hooks for this view
*
*/
protected function hooks()
{
parent::hooks();
// Since we set is_post_type_archive to true on month view, this prevents 'Events' from being added to the page title
add_filter('post_type_archive_title', '__return_false', 10);
if (!empty($this->events_in_month)) {
add_filter('tribe_events_month_has_events', array($this, 'has_events'));
}
}
示例4: hooks
/**
* Add any special hooks for this view
*
* @return void
**/
protected function hooks()
{
parent::hooks();
// Since we set is_post_type_archive to true on month view, this prevents 'Events' from being added to the page title
add_filter('post_type_archive_title', '__return_false', 10);
}
示例5: hooks
/**
* Set up hooks for this template
*
* @return void
**/
public function hooks()
{
parent::hooks();
add_filter('tribe_get_ical_link', array($this, 'ical_link'), 20, 1);
add_filter('tribe_events_header_attributes', array($this, 'header_attributes'));
}
示例6: hooks
public function hooks()
{
parent::hooks();
// Print JSON-LD markup on the `wp_head`
add_action('wp_head', array(Tribe__Events__JSON_LD__Event::instance(), 'markup'));
}
示例7: hooks
/**
* Set up hooks for this template
*
* @return void
* @since 1.0
**/
public function hooks()
{
parent::hooks();
add_filter('tribe_get_events_title', array($this, 'the_title'));
}