Group Extension API questions
-
I’m finding the Group Extension API on the Codex to be very helpful.
I do have a couple of questions, though.
- Should ‘nav_item_name’ be translatable, like
'nav_item_name' => __( 'label_name', 'handle');
- Can ‘enable_nav_item’ be conditional? Would a check like this work? (Is the group extension called at the right time to perform these kinds of checks?)
//Only show the navigation tab if this group has the plugin enabled $show_nav_item = ( plugin_is_enabled( bp_get_current_group_id() ) ) ? true : false; function __construct() { $args = array( 'enable_nav_item' => $show_nav_item, ); parent::init( $args ); }
Thanks for your help,
-David
- Should ‘nav_item_name’ be translatable, like
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Group Extension API questions’ is closed to new replies.