Skip to main content
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
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
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 not deleted user 74311

A name for an event that is executed at specific points throughout the WordPress core.

2 votes
Accepted

What's hook to use immediately after a user is authentcated

juste before testing login and password, you have the action wp_authenticate: https://codex.wordpress.org/Plugin_API/Action_Reference/wp_authenticate juste after test and only if logging is successf …
mmm's user avatar
  • 3,795
0 votes

Show only content in page after action click in Wordpress admin

to create a page with your own content, you can do like that : add_action("admin_menu", function () { $post_type = get_post_type_object("property"); add_submenu_page( " " …
mmm's user avatar
  • 3,795
3 votes
Accepted

Can't unregister parent theme's CPT from my child theme

you cannot remove a hook when you are in the same hook with the same priority. a solution is to hook the action with a lower priority add_action('init', 'remove_cpt', 5);
mmm's user avatar
  • 3,795
6 votes
Accepted

Unable to prevent function using save_post firing twice

First, you can use this hook to target only one custom type: https://developer.wordpress.org/reference/hooks/save_post_post-post_type/ This hook (and save_post) is called the first time when you clic …
mmm's user avatar
  • 3,795
0 votes

Help needed with woocommerce (wc stripe) filter

in filtering one of the meta, you can stop capture depending of the order content add_filter("get_post_metadata", function ($value, $object_id, $meta_key, $single) { if ("_stripe_charge_id" === …
mmm's user avatar
  • 3,795
0 votes

Creating Admin Submenu Page via Class Method

the action admin_menu is called with one empty argument, then anonymous function can only be with 0 or 1 useless argument. and then if you want to pass variables to this function, you can try that : …
mmm's user avatar
  • 3,795