Using the following snippet will let help the one who is creating a WordPress theme supporting RTL as well as LTR.
1 2 3 4 5 6 | function fright() { if(is_rtl()) {echo 'fright';} else {echo 'fleft';} } function fleft() { if(is_rtl()) {echo 'fleft';} else {echo 'fleft';} } |
Snippet Source/Credit: sagive.co.il