How to load rtl.css file without changing lanuage to persian in wordpress?

# if you want to enqueue your style in you theme, rtl or else function theme_enqueue_scripts() { # enqueue style in your theme wp_register_style( ‘rtl’, get_template_directory_uri() . ‘/css/rtl.css’, array(), ‘1.0.0’ ); wp_enqueue_style( ‘rtl’ ); } add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_scripts’ ); # if you need enqueue this, just if theme is rtl , copy this function function … Read more

how to remember specific action/event for current user?

According to the documentation there are 3 Polylang functions that can help you here : The first to “remember” the user language. pll_current_language // Returns the current language pll_current_language( $value ); // ‘$value’ => (optional) either ‘name’ or ‘locale’ or ‘slug’, defaults to ‘slug’ returns either the full name, or the WordPress locale (just as … Read more