1,033 reputation
69
bio website kovshenin.com
location Russia
age
visits member for 4 years, 7 months
seen May 20 at 14:03

May
14
awarded  Tenacious
May
4
comment add_action(), add_filter() before or after function
It works not because PHP parses the whole document, but because call_user_func_array() is (most likely) called after your function definition when running do_action. So you can define the hooked function anywhere up to that point.
May
4
comment get_avatar() always calls Mystery Man after theme update
Heh, yeah it's going to be tricky to help you with a paid theme that we don't have, and also one that is encrypted. I guess you could try debugging the $wp_filters global at some point to see if the theme has placed any hooks for get_avatar.
May
4
answered generate an auto incremented id number when a new user is registered
May
4
answered Query post only from categories that have subcategories
May
4
comment get_avatar() always calls Mystery Man after theme update
It'd be more helpful if you specified the theme name. Also run a quick search through the theme codebase to see if anything is hooked on get_avatar.
Apr
9
comment ECHO Executing 4 Times In Head
If your code is executed four times, it means the the_content filter is applied four times. Do you still get 4x with all plugins deactivated?
Apr
8
answered Widget Script Loads at Bottom of Page
Apr
8
answered ECHO Executing 4 Times In Head
Apr
5
answered Randomly display posts on a site hosted by WPEngine?
Apr
4
comment remove_action not removing add_action from constructor
I don't think you can destroy an object without being able to reference it, without some really bad hack of course :)
Apr
4
comment remove_action not removing add_action from constructor
It outputs true because your the action from your object is getting removed, but the action from WC's original object is not getting removed. Read my previous comment again.
Apr
4
comment Adding “reply-to” in the email
Yeah, wp_mail() takes both strings an arrays for headers so it should be fine. Otherwise just implode with \r\n and pass as a string.
Apr
4
comment remove_action not removing add_action from constructor
The problem with what you tried is that new WC_Admin_Taxonomies_new(); and $foo = new WC_Admin_Taxonomies_new(); are two separate instances, and you're removing an action only from the one you're creating, but not the one created by WooCommerce. Your other option is to loop through all attached callbacks to a specific action at an earlier priority, and use get_class() to "guess". I'd rather submit a patch to WooCommerce :)
Apr
4
comment Disable Author Box on Homepage & on Pages
Peter, you need at least a very high-level overview of how PHP works. Try to wrap your code in <?php if ( is_singular( 'post' ) ) { ?> and then <?php } ?> at the end.
Apr
4
comment Disable login on multisite web sites
@VukBG: HTTPS, strong password, Jetpack Protect, maybe 2fa.
Apr
4
comment Disable Author Box on Homepage & on Pages
It has to be inside in the PHP code within the <?php and ?> tags.
Apr
4
answered Adding “reply-to” in the email
Apr
4
answered Disable Author Box on Homepage & on Pages
Apr
4
answered Display popular posts by how many hits it got within 30 days of publishing