Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter Berat Gashi

    (@beratzgashi)

    Hi @joyously,

    Thanks for your reply.

    My function cru_generate_custom_style is called in post content and everywhere else and the only one that loads after this function is wp_footer so that’s why it doesn’t load my global variables in other hook, so when i call wp_enqueue_scripts it actually gets an empty array because the global variables are set way after the wp_enqueue_scripts or wp_head so i don’t know another way to set my custom css from everywhere to an array then to print it via wp_add_inline_style

    • This reply was modified 5 years, 3 months ago by Berat Gashi.
Viewing 1 replies (of 1 total)