The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
27 views

Proper Failure of Plugin Activation

I am currently developing a plugin, which depends on another plugin (json-api). I use the following code to check for the presence during startup and in the constructor, in case the json-api plugin is ...
1
vote
2answers
40 views

JavaScript added as link/stylesheet

I am just trying to create a plugin that will add some JS to the header and custom CSs. I have this below but it adds the css wrong and shows as JS. This is first plugin i have attempted. <?php ...
0
votes
1answer
46 views

How to get list of Scripts in Order of Dependencies

I was writing plugin for combining JS and CSS as three plugins I tried has not worked for me. Dependency problem is where I stopped. It look tough. Then I thought Wordpress can itself help. How to ...
1
vote
0answers
130 views

WordPress deployment strategy: Dealing with dependencies [closed]

The main question is: How do you deploy your WordPress sites, taking into account dependency management and database migrations? Details I've been reading around this issue both on Stack Exchange ...
3
votes
1answer
107 views

How to modify/extend/override a core method?

This is my first post. In advance, thank you for welcoming me... Context When you enqueue style, you can output your css link into conditional comments. global $wp_styles; ...
2
votes
2answers
150 views

Add a script as a dependency to a registered script

wp_register_script() (see codex) allows you to specify dependencies: scripts that must be loaded before the one being registered is loaded (if it is loaded). But suppose the script is a third-party ...
6
votes
1answer
226 views

Is there any sort of theme dependency management?

I'm developing a Wordpress theme with a few other individuals and am running into a problem where I add a plugin and then I have tell the other developers about the plugin I installed and the settings ...
21
votes
2answers
3k views

Should 3rd Parties Use $wp_scripts/$wp_styles->add_data?

Within the WP_Dependencies class exists a method named add_data. This function adds data to scripts/styles that have been enqueued during the WordPress load. A commonly cited use for this function is ...