Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options answers only user 34172

Method by which plugins and themes extend core WordPress functionality.

2
votes
Activation hook is run only after the plugin get activated. So only once and only during that one request. It's meant to allow author of a plugin to perform some actions after the plugin is activated. …
answered Feb 15 by Krzysiek Dróżdż
0
votes
The $_COOKIE array contains only these cookies that came in the request from the browser. setcookie() adds an HTTP header asking the client to send the cookie during subsequent requests. So yeah - …
answered Mar 8 by Krzysiek Dróżdż
1
vote
after_setup_theme action should be called only once. It's called on line 294 of wp-settings.php file directly (not inside any function). So I don't see how/why it could be called 3 times. The only re …
answered Jun 21 '13 by Krzysiek Dróżdż
3
votes
Well, it's a little bit complicated ;) If you will search update_comment_meta hook, you won't find it. But it exists :) There is update_comment_meta function and it calls update_metadata function w …
answered Jul 4 '13 by Krzysiek Dróżdż
3
votes
It’s a problem as old as WP, or even older... You can’t set cookies, or send any other headers, if any of the content of the site is already sent. You try to set cookies using init hook. And it is O …
answered Jan 6 by Krzysiek Dróżdż
1
vote
I don’t think that disabling admin-post.php is a good idea. Such solution may break WP, some plugins and themes. But there is another, much simpler solution. Just add your action for admin_post (with …
answered Jan 27 by Krzysiek Dróżdż
1
vote
First of all... It is a really bad idea to modify existing plugin. But if you really have to do this, then you can hide update link with this code (this one works for Yoast SEO): function remove_upd …
answered May 25 '18 by Krzysiek Dróżdż
0
votes
OK, so first of all - AJAX requests are separate, so you don't have to remove_action if you haven't added it earlier... And to be honest, I don't really get your code - you modify the global wp_query …
answered Jun 5 '18 by Krzysiek Dróżdż
30
votes
Filters and actions are both assigned to hooks. Functions assigned to hooks are stored in global $wp_filter variable. So all you have to do is to print_r it. print_r($GLOBALS['wp_filter']); PS …
answered Jul 2 '13 by Krzysiek Dróżdż
0
votes
One way to achieve such effect would be to use wp_nav_menu_objects hook. function modify_home_in_nav_menu_objects( $items, $args ) { foreach ( $items as $k => $object ) { // you can also …
answered Jun 4 '18 by Krzysiek Dróżdż
1
vote
You get 500 error, because you’ve added your filter incorrectly... It takes 4 params, but you register it as it was using only one. add_action('delete_product_cat', 'sync_cat_delete', 10, 1); // 10 …
answered Jan 1 by Krzysiek Dróżdż
1
vote
Using activation_hook isn't the best idea. Here's why (let's take a look what Codex says about activation hooks): When a plugin is activated, the action 'activate_PLUGINNAME' hook is called. In …
answered Feb 1 by Krzysiek Dróżdż
2
votes
Yes, you can. But you have to be careful, since some special cases may occur. Some of them are: 1. Function may be class method and not a global function: class SomeClass { ... function some_f …
answered Nov 28 '18 by Krzysiek Dróżdż
1
vote
The problem with your code is pretty simple. You don't terminate the script execution after doing redirect. So the header will be set, but browser will ignore it. If you'll take a look at WP Code Ref …
answered Apr 26 '18 by Krzysiek Dróżdż
1
vote
Yes, you can. WP_Widget_Tag_Cloud widget uses wp_tag_cloud to generate the tag cloud. And inside that function and at the end of that function you can find this: /** * Filters the tag cloud output …
answered Jun 30 by Krzysiek Dróżdż

15 30 50 per page