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 75495

Method by which plugins and themes extend core WordPress functionality.

1
vote
If add_action is undefined, it means WP is not loaded in the regular way. Assuming we are talking about functions.php in the theme folder (and not the functions.php in the wp-includes folder, which yo …
answered Apr 17 '17 by cjbj
4
votes
As noted in my answer to your related question there is a datastructre $wp_filter that stores all information on hooks and filters. You may want to try a var_dump on it just to see what it looks like … . There is no built in variable 'protected'. This leaves you with two options to keep the administration of the hooks you want to protect: build it into $wp_filter yourself or keep it separate. I …
answered Aug 31 '16 by cjbj
4
votes
Plugins will be able to re-enable any filter you have switched off, if they do so after you are finished. So the trick is to make sure you are the last one to do something with this filter by setting …
answered Oct 4 '16 by cjbj
0
votes
Sure there is a method to do this. You just need to attach your function to a different hook, admin_notices. You can even add classes that will turn into coloured bars, telling the user how important …
answered Mar 22 by cjbj
1
vote
Here's a quote from the source of load_textdomain (in WP 4.6): If the text domain already exists, the translations will be merged. If both sets have the same string, the translation from the ori …
answered Sep 30 '16 by cjbj
3
votes
Updating an existing comment in the database is done by the function wp_update_comment. As you can see, there is one hook, edit_comment, which you can use to trigger an action when a comment is update …
answered May 26 '18 by cjbj
1
vote
Ever since the solution mentioned here, WP has been updated and now allows you to manipulate the save process of wp_insert_post. If you look at the lines 3035 to 3057 (WP 4.7) the result of the check …
answered Jan 31 '17 by cjbj
2
votes
To do this you would indeed have to include some code in the functions.php of your theme. You can use admin_notices to add a note to this specific page like this: add_action( 'admin_notices', 'wpse33 …
answered Dec 16 '18 by cjbj
1
vote
There is a hook called transition_post_status which runs at every transition. You have both the old and new status available inside the hook.
answered Jan 2 '17 by cjbj
0
votes
If your theme is any good it uses get_the_post_thumbnail to retrieve the featured image. This function has a filter that you can use to detect whether there is a featured images and if not replace it. …
answered Jan 4 '17 by cjbj
1
vote
Since you are not specifying a priority to your actions, they will be executed in the order they are encountered. So your remove_action may very well be executed after the actions tied to the same hoo …
answered May 1 '17 by cjbj
1
vote
As noted by @cybmeta the most convenient way to add something on every post would be to use the_content filter. This may give you unexpected results on archive pages, because some themes use the_cont …
answered Sep 24 '16 by cjbj
0
votes
The filter you mention is used by the end of get_comments_number_text. As you can see from the source the number of comments is passed through the filter, allowing you to completely change the default …
answered Jun 7 '17 by cjbj
0
votes
Assuming that the blog part of the site has a different url-structure (eg www.example.com/blog/this-is-my-blogpost) you can use the PHP $_SERVER variable to determine which page is being called and us …
answered Oct 30 '18 by cjbj
0
votes
As long as you don't delete your theme by ftp, but use the regular way of switching to another theme in the admin, there is a hook to use, switch_theme. It works like this: add_action('switch_theme', …
answered Jun 18 '16 by cjbj

15 30 50 per page