Load custom translation in custom plugin fails

I think Jacob has probably solved your problem in the comments. However, to your question: How to debug further this issue? I would hook into the load_textdomain_mofile filter and check the fully built file paths WordPress is actually trying to read: Example: <?php function debug_missing_mofile( $mofile, $domain ){ if( ‘ausg’ === $domain && ! is_readable($mofile) … Read more

Change WooCommerce currency programmatically on AJAX request

This is how I solved it: /** * Force currency change */ add_filter( ‘wcml_client_currency’, function($current) { if(isset($_GET[‘currency’]) && $_GET[‘currency’]) return $_GET[‘currency’]; if(isset($_POST[‘currency’]) && $_POST[‘currency’]) return $_POST[‘currency’]; return $current; } ); And then in order for the above filter to be listened to, it’s important that you have added below code: add_action( ‘wp_ajax_quick_view_single_product’, __NAMESPACE__ . ‘\\quick_view_single_product’ … Read more

How to enqueue 2 rtl css

When using a CSS creator tool, you’ll have to enqueue this style-rtl.css so WordPress knows when to load this version. All you need to do is add a snippet to the functions.php file. This allows WordPress to load the right stylesheet when it is set to RTL language. Simply add the wp_style_add_data() information to your … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)