Articles of filters

remove_action in plugin file

Im trying to use remove_action( ‘admin_notices’, ‘woothemes_updater_notice’ ); In a plugin to keep from editing the themes functions.php file however the code isnt being executed. Do i need to wrap this in something to get it to work from the plugin files?

Regarding post text filtering

What does this statement actually do? $text = apply_filters(‘the_content’, $text); It follows only these ones: $text = get_the_content(”); $text = strip_shortcodes( $text ); What filter(s) is applied here?

Change login CSS

Is there a filter or something that would remove: html,body {height:100%;} declaration in the login page? I have made a custom login page and the html, body {height: 100%;} is conflicting in my style. WordPress loads the html,body {height:100%;} declaration from wp-admin/css/wp-admin.css and I would like to keep the wp-admin.css file intact. I cannot override […]

apply_filters('get_the_content', $content) + Except

I’m using the following function to load my content dynamically: apply_filters(‘get_the_content’, $content) However, I would like to apply an excerpt to this method but the only way I know how to do it is this way: $content = apply_filters(‘the_content’,get_the_content( $more_link_text, $stripteaser, $more_file )); Is there a way to apply an excerpt with my function? Thoughts? […]

How to edit classes in body tag?

I’m trying to edit classes in the body tag for custom post types so I can display the pages full width using the WooThemes Canvas built in full width class – instead of overriding it. By default it seems the body class is set to ‘two-col-right’ and ‘two-col-right-1080’ for custom post types, I need them […]

Deleting Certain terms from appearing on the front end as links

I’ve put some thought into this but Can’t really figure out what direction I take in getting rid of certain terms in my testimonial_category called ‘home’, ‘homeone’, hometwo. I only want to stop these displaying in a link format on the relevant page. Here is the code the process’s all the terms within testimonial_category, I […]

How can I apply a WP filter on specific plugin version

I have the plugins list in ‘wp-admin/plugins.php’ page. For each plugin there is some meta info extracted by WP from each plugin file: /*  * Plugin Name: somename  * Version: 1.2.3   */  I want to filter the version of a plugin, to show it in the plugins list, but not to modify the plugin file, […]

How to disable thumbnail filter for a specific template part or image size?

I am filtering post_thumbnail_html in my theme to modify the output of my image tags. I have one template part that I would like this filter not to apply to. It uses an image-size that is used no were else in the theme. So I am looking for a way to have this filter not […]

Filter a pluggable function

The following function is pluggable as it contains a filter : // Make function pluggable/overwritable if ( ! function_exists( ‘wpsight_layout_images’ ) ) { function wpsight_layout_images() { $layout_images = array( ‘show_on_single’ => true, ‘size_archive’ => ‘post-thumbnail’, ‘align_archive’ => ‘left’, ‘size_single’ => ‘post-thumbnail’, ‘align_single’ => ‘left’, ‘size_widget’ => ‘post-thumbnail’, ‘align_widget’ => ‘left’, ‘size_archive_listings’ => ‘post-thumbnail’, ‘align_archive_listings’ => […]

Help with filter for wp_notify_moderator()

I have a case where I have multiple Administrators. Not all of them want to be notified per email when there was a comment posted or is held for moderation. The Settings > Discussion page only allows for the control of comment moderation emails for all Admins, not for selected ones. Responsible for the emails […]