Browsing Category

Wordpress filters

Change add_filter based on Ajax

I’m using the Give plugin and am trying to add an option for the donor to opt-in to pay an extra percentage. I’m trying to

Filtered query_vars becomes global. Why does this work?

For some reason that’s not quite clear, when I add custom query_vars, they become available everywhere without the need of an accessor like global or

Shared upload folder in wordpress multisite with custom sub site domain pictures URL:s

This post relates to the solution found in: Shared upload folder in wordpress multisite Using the solution from the user: TheDeadMedic I use the filter

problem with filterable portfolio theme

i tried to write filterable potfolio in my theme but filter does not work. my html and wordpress code is here: html and wordpress code

Add filter to replace this code

I would like to change some code within a plugin with functions.php rather than changing code in the plugin. This is the default: echo '<div

How do I change where a plugin pulls updates from?

I’m trying to write a custom plugin for a few of my clients, and I’d like to serve updates for this plugin from my own

Unique design inside a specific category’s url

I been modifying a WordPress theme, and for some specific pages that need a specific design I placed a php file named page-specific-url.php where specific-url

Add default user field to WooCommerce checkout

trying to add default user meta field “nickname” to the standard woo commerce user checkout user field. The examples on their website adds custom fields

Filter Widget Title Wrap

This code i wrote works but it doesn’t remove the h4 add_filter( 'widget_title','modify_text_widget_title_tags', 10, 3 ); function modify_text_widget_title_tags( $title, $instance, $id_base ) { if (

problem with post_rewrite_rules filter

I am using the post_rewrite_rules filter to rewrite the posts url to make the posts URLS like this post-slug.xyn.com instead of xyn.com/post-slug First of all

How to use option_rewrite_rules filter

I am asking about how to use the “post_rewrite_rules” filter https://codex.wordpress.org/Plugin_API/Filter_Reference/post_rewrite_rules if i tried this : http://hookr.io/filters/option_rewrite_rules/ // define the post_rewrite_rules callback function filter_post_rewrite_rules( $post_rewrite

Unable to amend HTML markup of images within post content

Is anyone able to advise why I cannot get the filter image_send_to_editor (code below) to work. function html5_insert_image($html, $id, $caption, $title, $align, $url, $size, $alt)

Modify current query without refreshing the page

My current query is $args=array( 'post_type'=>'product', 'post_per_page'=>'10', 'tax_query' => array( array( 'taxonomy' => 'product_cat', 'field' => 'slug', 'terms' => 'car', ), ), ); $loop=new WP_Query($args);

Add Featured Image and Title to wp_nav_menu items

I like this solution, a lot, but how do I add images in addition to titles, instead of replacing titles? (Sorry, I’m still pretty new

media_upload_tabs filter not working in class

I have the need to remove the From URL tab on the Upload a file modal from within a class within a plugin. The following

How to filter $content in shortcode function

I would like to filter the $content in my shortcode function so that all I get is the shortcode. I am trying to nest one

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