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

learn more… | top users | synonyms (5)

0
votes
1answer
27 views

Getting entry ID from frm_email_message filter in formidable

Using the filter frm_email_message in formidable I want to change the message body in an email but I need to get the entry id. I can get it using a different filter frm_email_value. Is there a way ...
0
votes
0answers
59 views

how to find add_filter hook name?

I'm using jetpack photon. but it's not cache sidebar widget's image. so I found this code function jeherve_photonize_text_widget_images( $content ) { if ( class_exists( 'Jetpack_Photon' ) ) { ...
0
votes
0answers
12 views

Which filter called the function [duplicate]

I've created a function that does some replacing of urls and is called by several filters: add_filter( 'theme_root_uri', array( $this, 'replaceCDN' ), 99, 1 ); add_filter( 'plugins_url', array( $...
0
votes
1answer
36 views

How to add more than one custom metadata as filter on the post list page?

To add a filter based on metadata to a post we use the following format: $wp_query->query_vars['meta_key'] = 'meta_key_name'; $wp_query->query_vars['meta_value'] = meta_value; How can I add ...
0
votes
1answer
137 views

How to customize category_description()?

In a website I am working on ,there are 50 categories + sub categories, each has a a very long description text, then in an archive page I display all the titles of the categories + their description ...
1
vote
2answers
393 views

How to hook into permalink when publishing-saving post?

I want to know how I can change the structure of the permalink to my desired one before saving or publishing my post in Wordpress? For instance, when I add the title like the wordpress blog in my post ...
0
votes
1answer
65 views

Do “switch_to_blog()” and “restore_current_blog()” re-run the filters?

I've been working on a Wordrepss multisite network and came across very common requirement of displaying a common navigation menu across all sites. Use switch_to_blog() and restore_current_blog(...
1
vote
2answers
266 views

Yoast SEO hooks overriding themselves

I have some dynamic templates where I have to customize the canonical links. According to Yoast documentation the hook to use is wpseo_canonical I have two functions pointing to different pages IDs:...
1
vote
1answer
23 views

Ignore dots when searching in the media library?

As the title says, is it possible to ignore dots in search field in media library?
1
vote
1answer
31 views

What hook/filter can I use to add/edit/show/hide the title under (on hover) links on the table view?

I'm not entirely sure the name given to these links, but the class is called "row-actions".
0
votes
0answers
400 views

How to create a category filter on custom archive template?

I am trying to filter posts by category on a custom archive / template page. My template page currently has a custom query which displays posts from four specific categories. Then I have a select (...
0
votes
0answers
20 views

Adding Information To All Posts Screen

What I'm looking to do is add the value of a post's metafield in each post's row on the all posts screen. I'm attaching a screenshot of where I'd like this information to show up. The info would be ...
1
vote
1answer
38 views

Filter Media by Featured on Admin

Usually we can filter images in Media > Library by: date by MIME type, and by attached/unattached files ...but I'd like to expand this to a filter by Featured images. This way, we could filter ...
0
votes
0answers
97 views

Display Post Image Wrapped in Div, Inside Link Tag

So I'm trying to wrap media images published in a post into a custom div, that is also wrapped in a link tag that has the permalink of the media image as it's href. Here's the filter that I've made so ...
0
votes
4answers
171 views

Change Password Strength Indicator names?

Is it possible to change the labels for "Weak, Medium, Strong" etc... in the Password Indicator that's used in the user profile? I've been asked to change the word "Weak" to "OK" since this level of ...
0
votes
1answer
41 views

Add a function call after content automatically?

I want to add a function call in the single post page after the content, one way is that I add it in the single page template, eg. <div id="content"> <?php the_content(); ?> <?...
0
votes
0answers
350 views

Category filter with load more ajax

What I am trying to do is to do an Ajax request to filter posts on category click depending on the category id, then apply load more posts by ajax. Problem: when I fire the ajax call by clicking on ...
0
votes
1answer
79 views

Menu disappears with custom post type link

I’m working with Genesis Theme for a while but never got any problems:) This is my first big issue and I dont know how to solve it. I’m making a new website with Custom Post Types and WP All Import ...
0
votes
1answer
114 views

How can I edit comment meta value before it is saved?

I have introduced a custom field in comments form using add_comment_meta() function. I would like to know if there is a way to edit the data of the comment meta just before the post data is saved so ...
0
votes
0answers
98 views

Adding filter menu to admin custom type list to filter by custom field values having issues

I've been working on this for a bit and am having some difficulties because I can't understand for certain what is going wrong and why I'm getting the error that i am. It's hard to tell if it's a WP ...
0
votes
2answers
110 views

trying to create simple plugin to filter categories from all authors

i want to restrict all authors to spesific categories i already done it but via theme function.php, i trying to build as a plugin: this my plugin content: <?php /** * Plugin Name: My Restricted *...
1
vote
1answer
82 views

Wordpress custom taxonomy check box to dropdown

Hi my custom taxonomy name is country.In this A is a country, a-sub1,a-sub2 are states under A. b-sub1,b-sub2 are state under Country B. Now i need to display the country list(parent) box and state ...
0
votes
0answers
42 views

Sort Taxonomy List by Custom Values

I'm trying to make the order of taxonomies adjustable. I've already got the drag & drop working and can put those values to the database. I just don't know how to sort the taxonomy list by other ...
1
vote
2answers
878 views

Pass info from functions.php to plugin

What is the best way to pass some information from functions.php to a plugin? I need to give a user the ability to pass a piece of data from their functions.php file to my plugin. (It can be any data,...
0
votes
0answers
23 views

Multiple categories using filters ( same as ?cat=21,183,202,1)

Trying to find a filter or other programatic way of accomplishing multiple categories of posts on one page. I dont want to get_posts() or query(). The desired effect is like this: http://www....
0
votes
2answers
120 views

Why current_user_can('edit_comment') always true?

I am always getting TRUE for current_user_can('edit_comment'); on two different installations of WordPress (4.2.2 and 4.2.4) no matter what role the user is. Even when the user is logged out. I ...
0
votes
0answers
67 views

Loading ajax does not run through filter the_content

I have created a quiz page with a list of question. I use ajax to load the question content into the quiz. However, only the first question which loaded directly (not through ajax) render correctly. ...
0
votes
1answer
104 views

What would cause the gettext filter to not work for a given text domain?

Inside of a plugin, I'm using the gettext filter to alter strings of a theme so that I don't have to copy the template files over to a child theme and edit them. Also, this isn't always possible since ...
0
votes
0answers
112 views

Exclude password protected posts from pagination

Is there really no simple solution to excluding password protected posts from post pagination? I want to exclude the Quote post format, as well as password protected posts, and display custom HTML. ...
0
votes
1answer
56 views

WordPress Search Custom Meta Field Only

I have a recipe site where each recipe resides in a custom meta field called "recipes". I only want the contents of the meta field searched when users search the site. The problem with my code below: ...
-1
votes
1answer
98 views

WP Members additional fields on user profile [closed]

i want to have a limited set of fields during the registration process, but would still like additional fields available for the user to complete in the user profile.these are not required fields. as ...
0
votes
0answers
42 views

How to use a TinyMCE filter?

I am new in WordPress. I am trying to add a filter for tinymce like: function wpdocs_teeny_mce_button( $buttons, $editor_id ) { $buttons = array('bold', 'italic'); return $buttons; } ...
0
votes
0answers
46 views

wp_schedule_event doesn't work

Can someone tell me where I'm going wrong? Images in folder /wp-content/cached_img/ are not delated add_filter( 'cron_schedules', 'cron_add_week4' ); function cron_add_week4( $schedules ) { $...
0
votes
0answers
61 views

Filtering posts in query

I might be way over my head with this one, but I'm trying to get WP to filter posts by two taxonomies (categories & kategoriat) and one custom meta value (date), so you can filter between dates ...
1
vote
1answer
111 views

get_header and hook avoid normal call

I would like to use a custom header, like get_header('new') But I cannot modify the templates easily where the calls are being made due to several reasons. (many files and same code base deployed on ...
0
votes
1answer
29 views

apply_filters to $GLOBALS

I'm building a onepage website, using the Pootle Page Building plugin. With get_page, I show every separate page on 1 page. To target the Pootle Page Builder content, I'm using the following code: $...
0
votes
0answers
12 views

Wordpress Taxonomy Filter always show nothing

I have currently the following problem: I registered a new Taxonomy (called 'mediacategory'), but I got some problems by creating a filter. The script is working with the default taxonomy 'category' (...
0
votes
0answers
107 views

salary range filter doesnt work when value higher than 75 000

I' having a big issue to create a salary range filter... I have one custom post type job - with a custom taxonomy for the salary. The salary are all put as a range' exampple: 20 000 - 40 000 using ...
0
votes
0answers
21 views

Modify first post of any category page [duplicate]

I want to modify or add some text before first post of my few category page. How I can achieve this. Which filter do I need to use.
0
votes
2answers
486 views

add_filter to wp_nav_menu_objects having no impact

I'm attempting to add thumbnails to navigation items as per this question. However, after adding the sample code to the top of my functions.php file nothing happens. I've whittled the code down in an ...
0
votes
1answer
47 views

Worpress permalink setting

I have a doubt. If book is my custom post type, language is my taxonomy, english is the item in taxonomy , Harrypotter is new post in book with txonomy english. Then how i get the url structure like ...
0
votes
1answer
175 views

Dropdown switching subcategories portfolio

I have portfolio on my site and i want add dropdown switching subcategories for taxanomy 'potfolio-types' For example: Category A subcategory 1 subcategory 2 etc... when're in ...
0
votes
0answers
91 views

How to link a custom post type status to the user id

I'm currently trying to modify a plugin : Wp job manager application (addon). It allow user to reply via a form directly to a job proposal. After the user submit form. It's creating a custom post ...
1
vote
1answer
35 views

Filtering The Loop For Single Page and Blog Page

I want to start a div when loop starts in a single page ( also in the blog page ). And end that div when loop ends. Obviously using any filter hook or action hook. Thanks In Advance
0
votes
0answers
34 views

Search and replace post URL's on page output?

Currently, I'm using pretty permalinks for SEO purposes like this: http://example.com/sample-post. This is great for search engine ranking, but now I am finding this is not so great for mobile app ...
0
votes
0answers
32 views

Are immediately-called actions not usable in themes?

If there is a filter or action called immediately in a plugin file (not on 'init' or 'wp' action etc.), is it at all possible for a theme to filter it? Looking through wp-setting.php I would assume no,...
0
votes
0answers
40 views

Add custom filter to register data in array

I would like to register a multi arry of data in a plugin and allows any developper to add new value to the array. This multi array contains a name, and different value like this: class ...
0
votes
0answers
91 views

Email is not sent while adding add_filter in wpDiscuz - WordPress Comments plugin

Currently i am using a wordpress plugin named "wpDiscuz - WordPress Comments" which sends email notification to the user list present in "wc_subscriber" table, but i have hided the default code which ...
0
votes
0answers
72 views

How to flter a variable result in the Profile Builder plugin?

I'd like to understand filters in WordPress plugins as well as I understand actions. Is it possible to filter a variable being returned by a plugin? In this case, the Profile Builder plugin for ...
0
votes
1answer
50 views

Hook for altering the content of all wp mails

Hi i want to set email template for all mails for my site . I know how to set up mail template and i set mail template for each of my mail by editing the code ie wp_mail( $recipient, $subject, $...