JavaScript PHP WordPress

Add localized JavaScript variables to WordPress theme

Add following code to your functions.php

Added variable can be found in i18n object.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.