How can override a add_filter of a plugin?

How can I override add_filter of a plugin? like add_filter( ‘wcml_switch_currency_exception’, ‘cart_switching_currency’, 10, 4 ); I want to use my custom function instead “cart_switching_currency” function. 2 Answers 2 Filters come with a priority parameter, the default is 10, so to override a function you need to increase the priority: add_filter( ‘wcml_switch_currency_exception’, ‘cart_switching_currency’, 99, 4 ); … Read more

Unable to display multiple post types in same query (WPML WP_Query)

I’m sure there’s some very easy explaination for this, but I’m stuck. I am just trying to put a nice, simple recent posts element on the front-page of a site and for some reason when I try to use: $args = array( ‘post_type’ => array(‘post’,’recipes’), ‘posts_per_page’ => 4 ); query_posts( $args ); if ( have_posts() … Read more

Insights into WordPress Multi-Site, Domain Mapped, and Multilanguage site using WPML [closed]

It’s difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 9 years ago. I have a project with WordPress for a … Read more

Add language/country code to each possible URL

I’ve been trying to achieve a seemingly simple permalink structure customization without success. The goal is to always have /aa-bb/ in front of each possible permalink, where aa is a language code and bb a country code. Whatever comes after this should behave exactly like it would normally. So where normally you’d have /post-title/, afterwards … Read more

How to get posts in different language from WPML Plugin [closed]

Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it’s on-topic for WordPress Development Stack Exchange. Closed 7 years ago. Improve this question i’m using Thermal-Api plugin in order to define a REST WS to get posts in JSON format. My Client uses WPML … Read more