Changeset 10012 for trunk/src/bp-core/bp-core-component.php
- Timestamp:
- 07/12/2015 12:49:36 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-component.php
r9847 r10012 109 109 110 110 /** 111 * Metadata tables for the component (if applicable) 111 * Metadata tables for the component (if applicable). 112 112 * 113 113 * @since BuddyPress (2.0.0) … … 118 118 119 119 /** 120 * Global tables for the component (if applicable) 120 * Global tables for the component (if applicable). 121 121 * 122 122 * @since BuddyPress (2.0.0) … … 141 141 * @param array $params { 142 142 * Additional parameters used by the component. 143 * @type int $adminbar_myaccount_order Set the position for our menu under the WP Toolbar's "My Account menu" 143 * @type int $adminbar_myaccount_order Set the position for our menu under the WP Toolbar's "My Account menu". 144 144 * @type array $features An array of feature names. This is used to load additional files from your 145 145 * component directory and for feature active checks. eg. array( 'awesome' ) … … 331 331 * 332 332 * @param array $includes An array of file names, or file name chunks, 333 * to be parsed and then included.333 * to be parsed and then included. 334 334 */ 335 335 public function includes( $includes = array() ) { … … 455 455 * in the $sub_nav parameter array should be formatted. 456 456 * 457 * @param array $main_nav Optional. Passed directly to 458 * bp_core_new_nav_item().See that function for a description.459 * @param array $sub_nav Optional. Multidimensional array, each item in460 * which is passed to bp_core_new_subnav_item(). See that461 * function for a description.457 * @param array $main_nav Optional. Passed directly to bp_core_new_nav_item(). 458 * See that function for a description. 459 * @param array $sub_nav Optional. Multidimensional array, each item in 460 * which is passed to bp_core_new_subnav_item(). See that 461 * function for a description. 462 462 */ 463 463 public function setup_nav( $main_nav = array(), $sub_nav = array() ) { … … 490 490 * @see WP_Admin_Bar::add_menu() for a description of the syntax 491 491 * required by each item in the $wp_admin_nav parameter array. 492 * @global obj $wp_admin_bar493 * 494 * @param array $wp_admin_nav An array of nav item arguments. Each item 495 * in this parameterarray is passed to {@link WP_Admin_Bar::add_menu()}.496 * See that method for a description of the required syntax for497 * each item.492 * @global object $wp_admin_bar 493 * 494 * @param array $wp_admin_nav An array of nav item arguments. Each item in this parameter 495 * array is passed to {@link WP_Admin_Bar::add_menu()}. 496 * See that method for a description of the required syntax for 497 * each item. 498 498 */ 499 499 public function setup_admin_bar( $wp_admin_nav = array() ) { … … 747 747 748 748 /** 749 * Add any permalink structures 749 * Add any permalink structures. 750 750 * 751 751 * @since BuddyPress (1.9) 752 752 * 753 * @uses do_action() Calls 'bp_{@link bp_Component::name}_add_permastruct' 753 * @uses do_action() Calls 'bp_{@link bp_Component::name}_add_permastruct'. 754 754 */ 755 755 public function add_permastructs() { … … 766 766 767 767 /** 768 * Allow components to parse the main query 768 * Allow components to parse the main query. 769 769 * 770 770 * @since BuddyPress (1.9) 771 771 * 772 772 * @uses do_action() Calls 'bp_{@link bp_Component::name}_parse_query' 773 * @param object The main WP_Query773 * @param object $query The main WP_Query. 774 774 */ 775 775 public function parse_query( $query ) { … … 788 788 789 789 /** 790 * Generate any additional rewrite rules 790 * Generate any additional rewrite rules. 791 791 * 792 792 * @since BuddyPress (1.5) 793 793 * 794 * @uses do_action() Calls 'bp_{@link bp_Component::name}_generate_rewrite_rules' 794 * @uses do_action() Calls 'bp_{@link bp_Component::name}_generate_rewrite_rules'. 795 795 */ 796 796 public function generate_rewrite_rules() {
Note: See TracChangeset
for help on using the changeset viewer.