Plugin directory constant definitions
-
Yello,
could you move these definitions inside the cf7bs_maybe_init() function please.
define( 'CF7BS_MAINFILE', __FILE__ ); define( 'CF7BS_PATH', untrailingslashit( plugin_dir_path( CF7BS_MAINFILE ) ) ); define( 'CF7BS_URL', untrailingslashit( plugin_dir_url( CF7BS_MAINFILE ) ) ); define( 'CF7BS_BASENAME', plugin_basename( CF7BS_MAINFILE ) );I’ve got multisite setup which uses domain mapping, eg. subdomain sites have their own TLD domains.
Now your plugin sets the urls before domain mapping has its filters set. Urls should be set after all plugins loaded, in the cf7bs_maybe_init() function.
At the moment your plugin assets get different domain than the site has, and this affects things like minification.
Thanks
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Plugin directory constant definitions’ is closed to new replies.