Editing wp-config.php
Yes, the plugin can override it, use action, init with a function to disable it. for example add_action(init,’my_disable_revision’); function my_disable_revision () { define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ ); }
Yes, the plugin can override it, use action, init with a function to disable it. for example add_action(init,’my_disable_revision’); function my_disable_revision () { define( ‘BP_DEFAULT_COMPONENT’, ‘profile’ ); }
You can’t do this: wp_redirect( get_permalink($pid)); after you’ve already sent content to the browser. Headers were already sent, and wp_redirect is attempting to send a header again. The first three lines of the template you pasted above are all sending content to the browser, when you close and open php. evidently your header.php file is … Read more
As noted in @Milo’s comment, a function being “Pluggable” is entirely separate from it being filterable. A Pluggable function can be overridden wholesale, because of the if ( function_exists() ) conditional in which it’s wrapped. A Plugin is filterable if its output is parsed through an apply_filters() call. Since you only want to change a … Read more
My guess would be that you are remove the action before it is actually being added in the parent theme. The parent’s theme functions.php file gets loaded after the child one so it looks like your removing something that is not there yet. The 3rd parameter in remove_action() is the priority. Try playing around with … Read more
The thing with class methods is that unless they’re static, they belong to an object. And in your case your object is: new WC_Admin_Taxonomies_new(); Which means PHP will create the object and keep it in memory. But unfortunately, since you’re not assigning this object to a variable, you have no way of referencing it later … Read more
send_password_change_email and send_email_change_email are the filters used for sending the user an email, if they change their password or an account has been created for them. It is not responsible for the “New user registration on your site” mail. The function that does this is wp_new_user_notification(), which is actually one of the pluggable functions. You … Read more
The WooCommerce file that defines its pluggable functions isn’t loaded until after themes are loaded. It does this by hooking a function that includes the file into the after_setup_theme hook: add_action( ‘after_setup_theme’, array( $this, ‘include_template_functions’ ), 11 ); That’s from the /includes/class-woocommerce.php file in WooCommerce. The include_template_functions() function includes the file that defines functions like … Read more
The answer is right in your question and in the error message. Take a look at this part of your code: public function validate_current_password( $current_password = NULL ) { // Check if logged in if ( !is_user_loggged_in() ) { return $this->get_error( ‘not_logged_in’ ); } // Rest of validation… } You have a typo in there. … Read more
You just need to change the get_post_types( ”, ‘names’ ) to array( ‘post’, ‘page’ ). I.e. Manually specify the post types.
If you look at the end of the function get_cancel_comment_reply_link( $text=”” ) in the file wp-includes/comment-template.php, you see the filter cancel_comment_reply_link. return apply_filters( ‘cancel_comment_reply_link’, $formatted_link, $link, $text ); It may work.