本文整理汇总了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'));
}