[Resolved] Replace plugin-function from bp-groupblog – double output
-
I’m using wp 3.9, bp 2.0.1 and the bp-groupblog plugin 1.8.5. To customize the group-blog-registration-HTML I replaced the bp_groupblog_signup_blog-function by creating this function in the bp-custom.php file:
function replace_bp_groupblog_signup_blog() { remove_action('bp_groupblog_create_screen_markup', 'bp_groupblog_signup_blog'); remove_action( 'bp_groupblog_edit_screen_markup', 'bp_groupblog_signup_blog' ); function my_bp_groupblog_signup_blog($blogname = '', $blog_title = '', $errors = '') { // all the code } add_action( 'bp_groupblog_create_screen_markup', 'my_bp_groupblog_signup_blog'); add_action( 'bp_groupblog_edit_screen_markup', 'my_bp_groupblog_signup_blog' ); } add_action( 'plugins_loaded', 'replace_bp_groupblog_signup_blog' );
Now the output of both function, the customized and the original one, is shown. Is the bp-custom.php the right place to remove and add functions?
Thanks in advance.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘[Resolved] Replace plugin-function from bp-groupblog – double output’ is closed to new replies.