0
votes
1answer
66 views

get plugin directory url

I am trying to use SMOF Options Framework in a plugin and i have this problem. SMOOF use this constants to get theme directory url: if( !defined('ADMIN_PATH') ) define( 'ADMIN_PATH', ...
2
votes
1answer
171 views

What should I use instead of WP_CONTENT_DIR and WP_PLUGIN_DIR?

The WordPress documentation for Determining Plugin and Content Directories states that: WordPress makes use of the following constants when determining the path to the content and plugin ...
2
votes
1answer
386 views

Use theme constants in plugin?

I'm creating a plugin version of the Roots Theme function additions - to make it a bit more portable, but have run into a snag. Part of what Roots does is add htaccess rules based on the current ...
0
votes
1answer
172 views

Many Single Sites, One Plugin directory - adjust plugins_url()

[this is not a Multisite question] Update: this question is a logical impossibility, or a mind loop if you will, check update bellow. The technique is laid out here in WPEngineer. It allows ...