Browsing Category

WordPress filters

Creating unique ID number with prefix when registering or buying specific product

I’m looking through here: generate unique number when registering a user And everything works, other than the number of digits within the number isn’t always

theme_page_templates not working

I’m trying to filter the contents of my page template dropdown in the admin area. Having done some Googling it seems that the hook I

Changing the default wp_search_stopwords

I want to change the default stopwords in the wordpress search. I’m sure it’s easy but I can’t figure it out. Per this https://developer.wordpress.org/reference/hooks/wp_search_stopwords/ the

Cannot use pre_set_site_transient_update_themes from within a theme in multisite

I built a custom update script for a theme which can be bought on my site and put it directly into the theme, so no

Callback error, is due to using $this with inside filter or something else?

I’m trying to apply filter, but I get a callback error and I’m not sure why. I think it might have to do with the

Filter Hook callback error, is it due to using $this inside a filter or something else?

I’m trying to apply filter, but I get a callback error and I’m not sure why. I think it might have to do with the

Can’t set properly WordPress add_filter function

I’m trying to add icon to the button using add_filter function. Here is my code: function sh_woocompare_button_icon($text) { return ‘<i class=”fa fa-heart-o” aria-hidden=”true”></i> <span class=”tm_woocompare_product_actions_tip”><span

Adding Search to Select Box

I read about (Chosen plugin) but unfortunately wasn’t able to implemented in my site – wordpress- to add a filter to my tall list ..

Trying to get this function to show below the content

I’m looking to run a function ‘catloop’ after the content. Instead of just placing it below the_content(); I wanted to do it the right way.

add _filter comment_edit_redirect not working

In my plugin, I have this statement add_filter( ‘comment_edit_redirect’, ‘mcd_return_link’); and this function function mcd_return_link { return “edit-comments.php”; } Insider the comments.php (core file), is

check if FILTER is being executed in `the_post()`

I want to use add_filter(‘the_content’,………..) however, I want that filter only to affect the content that is shown inside main post (not inside the other

customize add_settings_error()?

I am trying to display the specific key name of the array with all the fields in the add_settings_error() function. First i iterate through the

Add wrapper to only youtube videos via embed_oembed_html filter function

I have a filter working to wrap embed_oembed links in a responsive wrapper. See code. add_filter(’embed_oembed_html’, ‘wrap_embed_with_div’, 10, 3); function wrap_embed_with_div($html, $url, $attr) { return

How to remove "jquery" and "admin-bar" script tags — for AMP pages plugin

I’m trying to implement the AMP pages on our site, using the Automattic plugin. I’ve got everything working fine except when I run test search

Drop down filter for tables in wordpress

Is there any way to filter the contents of my table using a drop down? For Example there’s a Column with YES/NO/MAYBE. I want to

Lazy Load WordPress Gallery Images

I’m trying to implement lazy loading/infinite scrolling into the WordPress theme. Something like what this site is doing https://tookapic.com/photos Ok, so I have the shortcode

Back to Top 134596 wordpress questions, 32 Wordpress answers.
Wordpress related, All rights reserved
Powered by Creative Advertising