Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/17/2012 02:35:45 PM (12 years ago)
Author:
boonebgorges
Message:

Allow BP_Group_Extension plugins to specify admin metabox priority and context

See #4414

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-groups/bp-groups-classes.php

    r6626 r6642  
    13301330    var $nav_item_position = 81;
    13311331
     1332    /**
     1333     * @var string Context for the optional admin metabox
     1334     * @see https://codex.wordpress.org/Function_Reference/add_meta_box for
     1335     *      possible values
     1336     * @since 1.7
     1337     */
     1338    var $admin_metabox_context = 'normal';
     1339
     1340    /**
     1341     * @var string Priority for the optional admin menabox
     1342     * @see https://codex.wordpress.org/Function_Reference/add_meta_box for
     1343     *      possible values
     1344     * @since 1.7
     1345     */
     1346    var $admin_metabox_priority = 'core';
     1347
    13321348    var $enable_create_step = true;
    13331349    var $enable_nav_item = true;
     
    14631479            create_function( '', 'do_action( "bp_groups_admin_meta_box_content_' . $this->slug . '", ' . $group_id . ' );' ),
    14641480            get_current_screen()->id,
    1465             'normal',
    1466             'core'
     1481            $this->admin_metabox_context,
     1482            $this->admin_metabox_priority
    14671483        );
    14681484    }
Note: See TracChangeset for help on using the changeset viewer.