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

learn more… | top users | synonyms (5)

0
votes
0answers
22 views

Custom Post Type Column Filter Not Populating HTML Select After Filtering

I am trying to setup a custom post type column filter. When the custom post type management page displays the filter is populated with all of the course custom post types. I then select an option and ...
0
votes
0answers
47 views

How Do I Add a Custom Field Inside a Gravity Forms Field?

I would like to add a custom field inside a gravity forms field. The custom field should accept HTML syntax. Here is an illustration of what I would like to achieve: To be specific, how do we add ...
0
votes
0answers
19 views

Why none of xmlrpc filters work

I disabled all of the plugins and used fresh install of wordpress but it seems none of xmlrpc filters works for me... . for example add_filter( 'xmlrpc_wp_insert_post_data', 'ffff' ); //or ...
0
votes
0answers
33 views

I can get the permalink or the excerpt to work correctly, but not both

I'm calling the following code from within a filter hook. (I'm using the_ rather than get_the for bugsquashing clarity.) function test_function($output, $format, $link, $post, $adjacent) { ...
0
votes
0answers
23 views

Filtering by custom fields select?

I have a custom template listing all the posts under a category x. This is how my current loop looks like: <?php query_posts('cat=522'); while (have_posts()) : the_post();?> All the ...
0
votes
0answers
57 views

apply_filters to remove some text within excerpt

I created this code below to remove all image captions in an excerpt, but it doesn't work. The image caption text is within the <em></em> HTML tags and I created this regex to remove the ...
0
votes
0answers
43 views

Insert a custom taxonomy as a class in acf gallery loop

I am almost there, but not sure how to echo out a custom taxonomy as a class into my div containing my image. (see all the stuff below). All of the tutorials I see talk about using wp_query and then ...
0
votes
0answers
14 views

How do i get the menu id currently being edited in the nav-menus.php page?

I am trying to get the ID of the menu currently being edited in the backend menus page( nav-menus.php ) under appearance. Is there any filter that returns the id of the current menu being edited ?
0
votes
0answers
49 views

price filter for easy digital download

i have a website with easy digital download plugin, but this plugin not have a price filter like woocommerce. i have search on google and i have found this free and paid plugin ...
0
votes
0answers
166 views

Dynamic attachment WooCommerce Follow-Up Emails

I am using the WooCommerce Follow-Up Emails plug-in for my clients website. With this plug-in, I send a e-mail directly after the order has been finished, containing a custom template with WooCommerce ...
0
votes
0answers
79 views

Used with meta_query in query_posts works slowly

Hey i have a problem this my code and if i used with all parameters i get from $_GET its start work so slowly..... (like 5 min). $checkbox = array( 'immediate'=>'כניסה מידית', ...
0
votes
0answers
17 views

Store Variable to be used Across Admin All Post Page

In the main taxonomy admin page (All page, All post, WooCommerce Orders, etc.) I am looking to store a variable to be stored for the page and then be used by a filter for each individual item row. ...
0
votes
0answers
9 views

Wrap <figure> for image inser from url?

I have checked here Always use <figure> for post images but it is not used when I insert image from url, it appears like normal in editor not wrap figure tag. Someone can help me ?
0
votes
0answers
62 views

WordPress registration: checking external database to see if name/email exists, then show error message

During registration (creating a new user account), in addition to checking the wordpress database, to see if user name or email already exist, I want to also check an external database. My code ...
0
votes
0answers
31 views

Checking if text from product 2 is equal to product 1

I am using Woocommerce product addons to allow users to upload a pdf file when ordering 2 products. I would like the following logic to be applied when both items are in the cart. If filename ...
0
votes
0answers
40 views

Cron schedule interval through plugin options?

My plugin sets up a CRON job on plugin activation to run after every 5 minutes. I want to provide a section in my plugin settings page, where the user can specify an interval. How would I do it? I am ...
0
votes
0answers
102 views

How to get to the date of the uploaded file

Anyone can tell which is the filter (if there is any) used for the date of an uploaded file. This can be useful to limit the upload for the users based on the time.
0
votes
0answers
54 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
52 views

Access to Payment Gateway Configuration Data in another plugin WooCommerce

I'm trying to get configuration's data from a Payment Gateway. But I just checked that there is a field in wp_options "woocommerce_nameofgateway_settings" and it's serialized. Is there a easier way ...
0
votes
0answers
328 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 ...
0
votes
0answers
91 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
0answers
304 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
0answers
84 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
0answers
37 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 ...
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: ...
0
votes
0answers
55 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
0answers
99 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
0answers
39 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
42 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
55 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 ...
0
votes
0answers
11 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
92 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
74 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 ...
0
votes
0answers
33 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
28 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 ...
0
votes
0answers
35 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
65 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
54 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
0answers
41 views

Populate Multiple dropdown

It's a bit complicated here. But I'm in real trouble right now. Let me explain I want 3 dropdowns populate by order. unless the first it will be disabled. product year (product custom taxonomy) x ...
0
votes
0answers
254 views

How To Sort and Filter Admin Custom Taxonomy Columns

I have a custom post-type with associated custom-taxonomies – how can I make these custom taxonomies sortable in the custom post-types admin/list view header (similar to how dates is sortable)? ...
0
votes
0answers
38 views

Modify content if has shortcode

I have a post or page , the content of that post or page is similar to the following Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et ...
0
votes
0answers
42 views

hook for adding a new column in woocommerce subscriptions

I try to add a new column in Woocommerce subscriptions, I would like to know what hook i will need to display my new column Thank you Nilda
0
votes
0answers
36 views

Best way to filter posts being displayed on the fly

I got the following post structure: The search box is to illustrate what I want to achieve. CPT Videos: Videos being displayed in the image. CPT Artistas: Another post type for the artists. ...
0
votes
0answers
70 views

add_filter Add To Content, Not Replace Existing Filter Function Content

If I am trying to add content to the content generated by a plugin/core filter function - how is this accomplished? The specific situation I am attempting to accomplish - I want to add the widget ID ...
0
votes
0answers
29 views

How to setup a new image size in a child theme?

I need to setup a new size for a thumbnail that will be used by a plugin but I can't get this done, this is what I have so far: /** * Registers a new image size. This means WordPress will create a * ...
0
votes
0answers
101 views

Adding placeholders to the sidebar-login widget plugin

It is my understanding that you may use the filters to code the placeholders to the plugin 'sidebar-login widget'. The programmer Mike pointed me to the code location where it should go: ...
0
votes
0answers
43 views

How to keep the sort order or filter applied in prev/next navigation?

I have an online shop (apartments for rent) using Woocommerce in Flatsome theme. The viewer can sort using the Woocommerce sort by dropdown menu, and filter items using Woocommerce filter widgets. ...
0
votes
0answers
36 views

wp_get_attachment_link filter for not working for inserted images

I want to change the value of title attribute of attachment link of the image by caption. I am using following code. It works fine for the images in gallery. But when try to do this for the inserted ...
0
votes
0answers
30 views

How to modify core when there is no hook?

I want to add a custom HTML5 attribute to the <form> element in the comments form. Since the form field itself is generated by comment_form(), and there is no hook to edit within the opening ...