is_rtl returns false while it should return true
Case 1 – is_rtl() is not working because it has been called directly. To use such contditional tags in WordPress, query should already be run. So such function should be used inside the function hooked to appropriate hook. Since it is called directly, its value will be always false. See https://developer.wordpress.org/themes/basics/conditional-tags/#where-to-use-conditional-tags Case 2 – It … Read more