wp_add_inline_script without dependency
wp_add_inline_style() – without dependency The wp_add_inline_style() can be used without a source file dependency. Here’s an example from @Flix: wp_register_style( ‘dummy-handle’, false ); wp_enqueue_style( ‘dummy-handle’ ); wp_add_inline_style( ‘dummy-handle’, ‘* { color: red; }’ ); where we would hook this into the wp_enqueue_scripts action. wp_add_inline_script() – without dependency According to ticket #43565, similar will be supported … Read more