Search Results
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 |
A type of hook that provides a way for content to be overridden programatically
2
votes
Add mime types with plugin
Obviously your plugin is producing an error!
More specifically, those allowed mime types are called in such a way that this error happens before WordPress actually starts sending output. The result: …
6
votes
Accepted
Changing bloginfo description from a plugin
You're lookign for the bloginfo filter.
<?php
add_filter( 'bloginfo', 'wpse33522_change_bloginfo', 10, 2 );
function wpse33522_change_bloginfo( $text, $show )
{
if ('description' == $show) {
…
3
votes
2
answers
3k
views
plugin_action_links Filter Hook Deprecated?
http://adambrown.info/p/wp_hooks/hook/plugin_action_links_%7B$plugin_file%7D
Says the hook is deprecated. However, the {$prefix}plugin_action_hook_{$plugin_file} is not. I poked around the wp-admin …
6
votes
Accepted
Change email from and display name with a filter action
A couple possibilities.
Use the settings API to add a form field somewhere in your admin area where the user can enter the email they want to use. Retrieve it in your hooked function with get_option …
14
votes
Accepted
Wordpress apply_filters() Arguments Missing
By default, actions and filters only get one argument. Try this:
<?php
add_filter('woocommerce_get_price', 'custom_price', 10, 2);
function custom_price($price, $product) {
...
} …
0
votes
How to remove "Taxonomy name:" from wp_title
I'd recommend you use a SEO plugin to take control of all of your titles. WordPress SEO by Yoast is very good.
Or you could add a filter to wp_title to change the output.
<?php
add_filter( 'wp_tit …
1
vote
Using attachment_fields_to_edit filter inside plugin class
If this is really your code:
<?php
add_filter('attachment_fields_to_edit', array($this, 'attachment_fields', 15, 2));
The reason it doesn't work is because of a misplaced parenthesis. Try this:
< …
1
vote
Accepted
Inserting Category programmatically
Keep track of the return value of wp_insert_term and use it to build your structure. A successful return value will be an array with a term_id key that you can pass into wp_insert_term's $args array a …
6
votes
Accepted
Using filter to add additional fields to comment_form()
There are a couple other hooks in the comment form that you can use. Where you're hooking on only displays if the user isn't logged in. If you want that field for all users (logged in or not), you n …
3
votes
Accepted
Replace single_template filter with what for default posts?
get_queried_object();
$templates = array();
$templates[] = "single-{$object->post_type}.php";
$templates[] = "single.php";
return get_query_template( 'single', $templates );
}
No filters …
3
votes
Accepted
Can I the caption shortcode to set caption to a data attribute, and with the image's alignme...
Basically the img_caption_shortcode filter allows you to completely replace the default image caption. If you want to do that, you'll need to ask WP to pass all the argument of the filter to your cal …