当前位置: 首页>>代码示例>>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;未经允许,请勿转载。