Tag: wp_add_inline_style

  • How to pass dynamic values from PHP to CSS/JS in WordPress

    There are situations when you have to use some values stored in DB or values being calculated in PHP script based upon different conditions in the java-script and css code. This can be achieved by writing the inline js/css code directly inside the php script. But in WordPress, this can be done very easily with…