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


PHP BP_Component::setup_actions方法代碼示例

本文整理匯總了PHP中BP_Component::setup_actions方法的典型用法代碼示例。如果您正苦於以下問題:PHP BP_Component::setup_actions方法的具體用法?PHP BP_Component::setup_actions怎麽用?PHP BP_Component::setup_actions使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在BP_Component的用法示例。


在下文中一共展示了BP_Component::setup_actions方法的7個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setup_actions

 /**
  * Set up actions necessary for the component.
  *
  * @since BuddyPress (1.6)
  */
 public function setup_actions()
 {
     add_action('humcore_deposits_results_deposit_sub_types', array($this, 'humcore_deposits_results_deposit_sub_types'));
     add_action('bp_before_directory_deposits_content', array($this, 'humcore_before_directory_deposits_content'));
     add_action('humcore_deposits_list_entry_content', 'humcore_deposits_list_entry_content');
     add_action('humcore_deposits_entry_content', 'humcore_deposits_entry_content');
     add_action('humcore_deposit_item_content', 'humcore_deposit_item_content');
     add_action('humcore_deposit_item_review_content', 'humcore_deposit_item_review_content');
     add_action('bp_activity_filter_options', array($this, 'display_activity_actions'));
     add_action('bp_member_activity_filter_options', array($this, 'display_activity_actions'));
     add_action('bp_setup_nav', array($this, 'humcore_setup_deposit_group_nav'));
     parent::setup_actions();
 }
開發者ID:MartinPaulEve,項目名稱:humcore,代碼行數:18,代碼來源:component-loader.php

示例2: setup_actions

 /**
  * SETUP ACTIONS
  *
  * @since  BuddyBoss BMT 1.0
  */
 public function setup_actions()
 {
     // Add body class
     add_filter('body_class', array($this, 'body_class'));
     add_action('bp_members_directory_member_types', array($this, 'bpt_members_directory'));
     add_action('bp_pre_user_query_construct', array($this, 'bpt_members_query'), 1, 1);
     //Check hide member is not checked in setting
     $is_member_type_field_visible = buddyboss_bmt()->option('hide_member_type_field');
     if (empty($is_member_type_field_visible)) {
         add_action('bp_signup_profile_fields', array($this, 'bmt_member_type_option'));
     }
     // For welcome exp
     if (function_exists('bwe_load_admin')) {
         add_action('bwe_after_signup_profile_fields', array($this, 'bmt_member_type_option'));
     }
     add_action('admin_enqueue_scripts', array($this, 'bmt_member_type_admin_style'));
     parent::setup_actions();
 }
開發者ID:tvolmari,項目名稱:hammydowns,代碼行數:23,代碼來源:bmt-class.php

示例3: setup_actions

 /**
  * Set up actions necessary for the component.
  *
  * @since 1.6.0
  */
 public function setup_actions()
 {
     // Spam prevention.
     add_action('bp_include', 'bp_activity_setup_akismet');
     parent::setup_actions();
 }
開發者ID:swissspidy,項目名稱:BuddyPress,代碼行數:11,代碼來源:bp-activity-loader.php

示例4: setup_actions

 /**
  * Setup the actions
  *
  * @since bbPress (r3395)
  * @access private
  * @uses add_filter() To add various filters
  * @uses add_action() To add various actions
  * @link http://bbpress.trac.wordpress.org/ticket/2176
  */
 public function setup_actions()
 {
     // Setup the components
     add_action('bp_init', array($this, 'setup_components'), 7);
     parent::setup_actions();
 }
開發者ID:danielcoats,項目名稱:schoolpress,代碼行數:15,代碼來源:loader.php

示例5: array

 /**
  * SETUP ACTIONS
  *
  * @since  BuddyBoss 3.0
  */
 function setup_actions()
 {
     // Add body class
     add_filter('body_class', array($this, 'add_body_class'));
     // Caching
     $this->cache = get_transient('bbwall_cacher');
     add_action('wp_shutdown', array($this, 'shutdown'));
     // Actions/filters
     add_action('template_redirect', array($this, 'newsfeed_logout_redirect_url'));
     // Front End Assets
     if (!is_admin()) {
         add_action('wp_enqueue_scripts', array($this, 'buddyboss_wall_assets'));
     }
     parent::setup_actions();
 }
開發者ID:tvolmari,項目名稱:hammydowns,代碼行數:20,代碼來源:buddyboss-wall-loader.php

示例6: setup_actions

 /**
  * Hook into BuddyPress actions for further integration
  *
  * @since Achievements (3.2)
  * @see https://bbpress.trac.wordpress.org/ticket/2176
  */
 public function setup_actions()
 {
     add_action('bp_init', array($this, 'init_components'), 7);
     parent::setup_actions();
 }
開發者ID:rlybbert,項目名稱:achievements,代碼行數:11,代碼來源:class-dpa-buddypress-component.php

示例7: setup_actions

 /**
  * SETUP ACTIONS
  *
  * @since  BuddyBoss 3.0
  */
 public function setup_actions()
 {
     global $buddyboss;
     // Add body class
     add_filter('body_class', array($this, 'add_body_class'));
     // Caching
     $this->cache = get_transient('bbpics_cacher');
     add_action('wp_shutdown', array($this, 'shutdown'));
     // Globals
     add_action('bp_setup_globals', array($this, 'setup_globals'));
     // Menu
     add_action('bp_setup_nav', array($this, 'setup_bp_menu'), 100);
     add_action('wp_before_admin_bar_render', array($this, 'setup_wp_menu'), 100);
     // Add a query string to show inline content for single pictures
     $this->redirect_single = isset($_GET['buddyboss_ajax_pic']) && $_GET['buddyboss_ajax_pic'] === 'true';
     if ($this->redirect_single === true) {
         add_filter('bp_activity_permalink_redirect_url', array($this, 'single_pic_uri'));
     }
     // Show single picture without header or footer for inline lightbox
     $this->show_single = isset($_GET['buddyboss_ajax_pic_page']) && $_GET['buddyboss_ajax_pic_page'] === 'true';
     if ($this->show_single === true) {
         add_filter('bp_activity_template_profile_activity_permalink', array($this, 'single_pic_template'));
         add_action('after_setup_theme', array($this, 'single_pic_remove_confirmation_js'));
     }
     // Front End Assets
     if (!is_admin()) {
         add_action('wp_enqueue_scripts', array($this, 'buddyboss_pics_assets'));
     }
     parent::setup_actions();
 }
開發者ID:tvolmari,項目名稱:hammydowns,代碼行數:35,代碼來源:buddyboss-pics-loader.php


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