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 type of hook that provides a way for content to be overridden programatically

2 votes
Accepted

Filtering a list of objects with 'OR' on the same field

the function wp_filter_object_list can only filter one value. for your filter try that : $post_tags = array_filter($post_tags, function ($e) { return in_array($e->slug, ["dog", "cat"]); });
mmm's user avatar
  • 3,795
0 votes

Modify WordPress Rest Api Request/Response

To define default values, you can use the filter rest_{$post_type}_collection_params like that : $post_type = "post"; add_filter("rest_{$post_type}_collection_params", function ($query_params, $pos …
mmm's user avatar
  • 3,795
1 vote
Accepted

Adding a Clone link to product attributes - post_row_actions() filter, or how to override a ...

WooCommerce have not anticipate the need of adding a new action in this place so there is neither filters nor actions for doing this there is 2 others solutions : adding the link with JavaScript parsing …
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

Help Adding filter to Add Media button for custom post type

PS : this doesn't answer the question but can help readers you can conditionaly remove the button withe the filter wp_editor_settings add_filter("wp_editor_settings", function ($settings, $editor_id …
mmm's user avatar
  • 3,795
0 votes
Accepted

Help Adding filter to Add Media button for custom post type

to test the post type where the image is included, try that : add_filter("media_send_to_editor", function ($html, $attachment_id, $attachment) { $image = get_post($attachment_id); $post = …
mmm's user avatar
  • 3,795