Browsing Category

Wordpress filters

Get excerpt from $post->post_content

I am modifying the output of a plugin using a filter, and the $post variable is available to me, so I can display the post

Filter for adding image to RSS feed not working

the code at the end of my functions.phpfile in my theme seems to have stopped adding images to my RSS feed. Does anyone know what

Add Dropdown menu using "add_filter => wp_nav_menu_items"

My project: WordPress, Woocommerce, Bootstrap 4, bs4navwalker My problem: Custom dropdown item added by WP filter I’m using a filter (add_filter( ‘wp_nav_menu_items’,) to add login,

How to beautify output HTML using Tidy?

I want to beautify output HTML using Tidy in WordPress, And want to use the code in my Theme, How can I do this? Thank

remove specific classes from menu items

I want to remove some specific class names from the menu items For example I need to remove classes of fa and fa-desktop from all

Override parent theme template function

I am struggling to understand or override this code. I just want to override one variable inside a function file that is located in a

Stripping URLs & Email from post submissions

I want to prevent users posting in this instance of WordPress from submitting URLs and Emails in posts. I’m trying to do it via Regex

add_filter : Passing an array instead of the callback function?

I was just reading through BuddyPress code because I want to develop a custom plugin on top of it. I encountered was something very peculiar

add_filter the_content doesn’t work

I just made a plugin with some meta data and such. I need to alter the content when, but my add_filter(‘the_content’) doesn’t do anything… Code:

Translating an error message

I’d like to translate one error message from a plugin that blocks spam from our forms but occasionally blocks legitimate (live-person) form submissions. The message

Is it possible to hook into attachment details or settings blocks?

I need to hook into one of these blocks (marked red): I have been looking for a hook/filter for a long time time, but could

Grid and List filter is not working on WooCommerce

No js error is shown in the console. Read more here: Grid and List filter is not working on WooCommerce

How to filter to output of the get_permalink() function

I know how to filter the output of the function the_permalink – it is like this: add_filter('the_permalink', 'my_the_permalink'); function my_the_permalink($url) { return 'http://mysite/my-link/'; } And

Redirect to woocommerce checkout after adding to cart – item already in cart

I have this code /* * Redirect to checkout after adding to cart */ function themeprefix_add_to_cart_redirect() { global $woocommerce; $checkout_url = $woocommerce->cart->get_checkout_url(); return $checkout_url; }

How do I do Filters in Category pages?

Hi I have a client who wants a filter in a category page, is this possible, please? Thanks in advance, Read more here: How do

How to get shorcode’s input values inside a filter?

I’m trying to get the input value of a shortcode inside a function that is used by a filter, but there seems to be no

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