[buddypress-trac] [BuddyPress Trac] #7226: Update BP_buttons class to accept new arg param for $element_type
buddypress-trac
noreply at wordpress.org
Tue Oct 11 14:57:55 UTC 2016
#7226: Update BP_buttons class to accept new arg param for $element_type
-------------------------+---------------------
Reporter: hnla | Owner: r-a-y
Type: enhancement | Status: closed
Priority: normal | Milestone: 2.7
Component: Core | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch |
-------------------------+---------------------
Comment (by needle):
I can, of course, filter these buttons so they retain their existing
markup, but it seems to me that this should be handled in core. Leaving
this here for anyone who might need it:
{{{#!php
<?php
function my_unwrap_bp_directory_button( $button_args ) {
$button_args['parent_element'] = '';
return $button_args;
}
add_filter( 'bp_get_group_create_button', 'my_unwrap_bp_directory_button'
);
add_filter( 'bp_get_blog_create_button', 'my_unwrap_bp_directory_button'
);
}}}
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/7226#comment:44>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list