A type of hook that provides a way for content to be overridden programatically

learn more… | top users | synonyms (5)

1
vote
1answer
41 views

Inserting above the comment template

I want to insert content, just above the comment template.I have tried all the word-press filters and hooks but failed. I want to insert the content above the comment template, I mean above all ...
1
vote
1answer
148 views

Change the footer text on the login page

I am customising the login page and would like to alter the footer text that takes the user back to the website. Ideally and as an example, changing it from the first image, to the second just below: ...
1
vote
1answer
54 views

How do I run through a Wordpress loop called from a filter function?

So I'm trying to populate an Advanced Custom Fields selectbox with a nice complicated array based off some post data. I've been trying to do this by doing a custom query and loop through the returned ...
3
votes
0answers
92 views

Hooking into wp_export filter for custom post type [closed]

I'm working with a CPT which has 5 taxonomies (tags, not categories). I am attempting to use the wp_export filter. The issue I am experiencing is when the filter is running: it appears to run it ...
0
votes
1answer
311 views

WordPress RSS feed - filter RSS content by custom field value

I can have the RSS feed url like: http://www.mydomain.com/?post_type=job_listing&job_cat=value#1&job_type=value#2&geo_country=value#3&feed=rss2 job_cat & job_type are taxonomies ...
0
votes
1answer
101 views

alternative to the_content filter

"i am using the_content filter on the category pages like cat=1" I am appending --N in the content. But due the the theme functionality it strip the content after some number of characters therefore ...
0
votes
2answers
219 views

Conditionally call add_action depending on post_type?

When building a plugin, I know that you can hook into a function to run some code like add_action('admin_footer', array($this, 'custom_function')); And within that function, test for post_type like ...
0
votes
0answers
55 views

How to update permalink on the fly?

So, Wordpress automatically generates the slug/permalink on the fly based on the post title after you click away from editing the title. Is there an action/filter hook for me to change those on the ...
0
votes
2answers
43 views

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() { ...
0
votes
1answer
466 views

Modify post filter to set custom number of posts per page and exclude child posts

I have a custom post type called "galleries," which is hierarchical. I'm using a function in my functions.php file to modify the number of posts displayed per page to 48. That part works fine, but I ...
0
votes
1answer
286 views

hook into completed image upload filter

I'm trying to run a little function to determine the luminance of an image and store that in the postmeta for that image.. I have the function working, but id like it to fire when an image has ...
0
votes
1answer
1k views

Customize WooCommerce Error Message

I would like to change the wording of an error message I see in WooCommerce. Are there any filters I can use to do this?
0
votes
0answers
65 views

Continue Reading link with the_content filter

I am trying to get the read more link with the the_content filter. $post = get_post( $v['post_id'] ); $content = $post->post_content; $content = apply_filters('the_content', get_the_content( ...
-1
votes
1answer
256 views

Background color and background image below element in Contact Form 7 - error tip [closed]

The idea was to make the not valid error tip that comes up when people fail to fill out a required field show up like a speech bubble. So the arrowhead image shows in the center and underneath the ...
0
votes
1answer
108 views

Very stubborn wp_register_script / add_action vs remove

I am trying to get rid of a plugin's .js file in the but it's not working. It's being called here {partial code): class awqsf{ const post_type = 'awqsf'; function __construct(){ // ...
1
vote
1answer
276 views

Add body class of category parent

I am not a coder, but I usually get by with Wordpress by doing my research and find my solution. I can't find what I need to do this time so I have attempted to crib together some code - what I am ...
1
vote
2answers
497 views

wp_mail - Remove sitename from email subject

Can some one tell me how to remove site name from email subject. As of now my email subject looks like this [sitename] - Subject goes here I want it to look like this Subject goes here I ...
1
vote
1answer
75 views

How to use manage_$post_type_posts_columns with underscore in post type?

I have a post type 'job_listing' and I want to use manage_{$post_type}_posts_columns filter in it. I tried manage_job_listing_posts_columns but it's not working because of the underscore in the post ...
5
votes
1answer
136 views

Add quick edit fields without custom colum

This question is a follow up on that answer I wrote. Let's say I want to add something to the quick edit box for the Posts post type list table. To do so, I have to add a custom column because of the ...
0
votes
1answer
715 views

How can I change the <img src> to <data-original> for lazyload wp smilies

I tried to improve my WordPress performance, and already put the content <img> with jQuery LazyLoad. Now, I got some problem in changing the smilies src, already set the theme smilies add ...
3
votes
1answer
263 views

Hook into admin post list page

So I want to create a custom admin interface for the post and page lists. I want it to be a split view with a list of posts and some data on the left, and a full editable preview of the post on the ...
2
votes
1answer
134 views

What does (10, 2) mean when used with add_filter

Please tell my what is 10, 2 in below mention code: add_filter('nav_menu_css_class', 'add_active_class', 10, 2 ); function add_active_class($classes, $item) { if($item->menu_item_parent == 0 ...
0
votes
2answers
747 views

Modify the post/entry wrapper markup in genesis childtheme

I feel like this should be an easily found answer but so far I havent found anything. So the genesis loop automatically wraps the posts in a div like so: <div class="post-4006 post type-post ...
1
vote
1answer
150 views

Determine plugin name from within plugin_action_links filter

Is there any way to determine what plugin the plugin_action_links filter is addressing when it processes the filter? I'm trying to add some actions for each plugin on the /wp-admin/plugins.php page. ...
1
vote
2answers
271 views

Passing values from a widget to a function within a plugin

I have a plugin that is built with many widgets. A widget's bundle. Each widget creates it's own custom CSS code. Instead of having messy source code where I display 15 different sets of inline CSS ...
0
votes
0answers
162 views

Trying to apply apply_filters to custom post type content - not working

this is kind of a strange request. I have a plugin that adds a custom post type - then the plugin has some settings where the user can select from any of the posts they created (in that custom post ...
0
votes
0answers
18 views

Change core metaboxes labels [duplicate]

I am creating the oh-so-common Events custom post type and I want to use the published date as my event date. Eventually, in my archive, I will make sure to display posts with the scheduled status. I ...
0
votes
1answer
68 views

How to hook into action/filter call

I'm about to create a very simple logging plugin. Every time an action or filter is fired I need to log it to the file. The idea is that we will be able to see exactly which actions and filters are ...
1
vote
0answers
83 views

Filter pre_get_posts does not modify Mine/All/Pending

Maybe I need to use a different filter, but I am using the pre_get_posts filter to filter out posts on a custom post list view. It works for the main table, but the quicklinks to (All) (Published) ...
0
votes
1answer
175 views

Filter Posts by current Month

Ok, I have a client that wants to only display posts by the current month. I've tried a few different variations but none have worked. Here's where I'm at now. Any help is appreciated! ...
0
votes
2answers
520 views

Custom Login Errors and variables I can use

I need to change this error message from including the username to the users email address. I've checked this question and answer out and it helped, but didn't go far enough for me. Change login ...
0
votes
0answers
74 views

How to display list of categories when using multi category filter

I'm using a multiple category filter by linking to URLs such as: domain.com/category/reviews+books domain.com/category/reviews+art etc This works fine as a filter but I can't find any built in ...
0
votes
1answer
79 views

How to set default values for edit_post_link() in my theme?

How do I set default values for the edit_post_link function in my theme? I'd like to change the 'Edit This' string to a custom value, but specify this only once, so I can use instead of everywhere. ...
1
vote
1answer
291 views

Using add_filter() in Widgets

Just have a query reference the add_filter() function. Can you use this function inside a WordPress widget class. Example I have a widget with dynamic created code that I want to pass to another ...
1
vote
0answers
55 views

Issue understanding and using WordPress filters and actions

I have a custom WordPress plugin that I have developed. The plugin is a widget bundle containing a bunch of custom widgets. The scenerio The plugin allows for custom css styles through creating a ...
0
votes
0answers
137 views

Customize register form page with add_action or apply_filter

I am studying "action and filter" and confused. I have a theme and I need to add "phone number1, phone number2" on register form page. I have been trying to file apply filter or add action on the ...
0
votes
2answers
196 views

Filtering WP_Query

I'm developing a site that uses a Artist custom post type and I need to query all posts of this type in a page template. I need to set the is_post_type_archive property to true too to filter this ...
0
votes
1answer
91 views

filter on the_content stopped working when I updated to WP 3.6.1

I created a filter to add a pin button on to my blog posts' images, which after much playing worked. Then, a few weeks later, I updated to 3.6.1, and the filter stopped working. Did something change ...
0
votes
1answer
140 views

Detecting Embed URLs Within post_content

I need to change the way WP outputs html when given an embed URL within the content. Example content within the WP editor: This is standard content and will be wrapped in a 'p' tag. But check out ...
0
votes
2answers
785 views

Replace Paid Shipping Method With Free Shipping Method WooCommerce [duplicate]

If I have a store that offers flat rate shipping of $10 and free shipping for orders over $100 and a customer orders over $100 it doesn't make much sense for them to have to see both free shipping and ...
0
votes
0answers
53 views

Show post when both categories are present but not one of them

I'm having issue filtering posts by category. There is the A category for posts (which is the default and also applies when no category has been set explicitly) and B category with subcategories for ...
0
votes
1answer
22 views

Right way for setting categories

My site follows this hierarchy HTML5 + Themes Resources Books Tools Wordpress + Plugins Themes Tools Books jQuery + Plugins Tools books and the same combinations for CSS3, SEO and others, ...
0
votes
1answer
331 views

Custom Taxonomy Filter Issues

I have a custom post type with a few custom taxonomies and I am using a piece of code to filter the posts based on the taxonomy on the main edit page using drop-down menus, which works great, but I ...
1
vote
1answer
212 views

Contact Form 7 filter similar to preprocess_comment [closed]

Does the Contact Form 7 plugin have a filter similar to WordPress's preprocess_comment? I'll be using this filter to check the body of the message for certain words and call wp_die() to display a ...
0
votes
1answer
86 views

How to use in_category?

There's this "Recent Posts" widget, that should output only posts in category 'News' (ID 26) So I tried this: <?php $t =& peTheme(); ?> <?php $content =& $t->content; ?> ...
0
votes
0answers
52 views

Query Database and Return the result in translated pages

I am having a problem for a while now and I can´t seem to solve it on my own. I have made a website, this website is multilingual and it was made in wordpress. In my "photo album" page when I sort ...
0
votes
0answers
40 views

get_the_excerpt on mobile still displays continue reading

I'm writing a plugin where I'm using the excerpt field as just another field. In order to get rid of the 'Continue Reading' Link, I'm removing all possible theme filters: add_action( ...
0
votes
1answer
122 views

Which filter affects the 'entry-title' post class

I created a plugin setting a $var to true if the post belongs to category 'a', and set the same $var to false if the post belongs to category 'b', it works and I can get the correct value depends on ...
0
votes
2answers
256 views

Add Filter not working with get_posts

While tweaking the "Bryans Childpage Thumbnail Generator" plugin, I am applying filter (with pagination) to the get_posts for WP Pages (post_type=page), but its not filtering at all. Here is the code: ...
0
votes
1answer
48 views

changing variable through filters or action hooks

it appears i have a problem with understanding how add_action,add_filter and apply_filters work. somewhat abbreviated, i have the following scenario: in a template file i have this while ( ...