1,098 reputation
69
bio website kovshenin.com
location Russia
age
visits member for 4 years, 10 months
seen Aug 27 at 21:20

Jul
30
comment WP_Comment_Query() displays “password protected” comments?
Yeah, so that query makes sure comments are taken for published posts only. Why do you think it's returning comments for private posts as well? Can you print_r the returned set and check the post ID's against the database posts table?
Jul
29
comment WP_Comment_Query() displays “password protected” comments?
You can do it with a plugin like Query Monitor or the Debug Bar series.
Jul
29
comment WP_Comment_Query() displays “password protected” comments?
so $comments = WP_Comment_Query( array( 'post_status' => 'publish' ) ); give you comments to private posts? Could you post the resulting SQL query?
Jul
29
answered get_post_type_object() does not work with switch_to_blog()
Jul
29
comment WP_Comment_Query() displays “password protected” comments?
Could you post the code that queries your comments, as well as the resulting SQL statement?
Jul
29
comment Add custom filter to register data in array
So what does your print_r output? Is it working as expected? I'm having a hard time understanding the question. Can you provide more details?
Jul
29
comment How to pass a PHP $_GET variable and fetch/output it?
It's strange that $_GET['foo'] doesn't work. What about standard WordPress query variables, does ?s=foo in the URL result in a search? Can you output $_GET['s'] in the code?
Jul
29
answered Add delay to publish post
Jul
29
comment Add delay to publish post
Can you tell us more about your servers setup? Are you using a distributed filesystem? How are you mirroring your files to other servers?
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
answered generate an auto incremented id number when a new user is registered
May
4
answered Query post only from categories that have subcategories
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.