當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Tribe__Events__Template_Factory::hooks方法代碼示例

本文整理匯總了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');
     }
 }
開發者ID:uwmadisoncals,項目名稱:Cluster-Plugins,代碼行數:7,代碼來源:List.php

示例2: hooks

 public function hooks()
 {
     parent::hooks();
     add_action('embed_head', array($this, 'embed_head'));
 }
開發者ID:nullify005,項目名稱:shcc-website,代碼行數:5,代碼來源:Embed.php

示例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'));
     }
 }
開發者ID:acutedeveloper,項目名稱:havering-intranet-development,代碼行數:13,代碼來源:Month.php

示例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);
 }
開發者ID:uoyknaht,項目名稱:kc,代碼行數:11,代碼來源:Month.php

示例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'));
 }
開發者ID:Alexander-smirnov,項目名稱:infomist,代碼行數:11,代碼來源:Day.php

示例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'));
 }
開發者ID:nullify005,項目名稱:shcc-website,代碼行數:6,代碼來源:Single_Event.php

示例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'));
 }
開發者ID:rlaloux,項目名稱:tribe-events-agenda-view,代碼行數:11,代碼來源:tribe-events-agenda-template-class.php


注:本文中的Tribe__Events__Template_Factory::hooks方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。