Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load plugin after CoCart via plugins_loaded hook #49

Open
seb86 opened this issue Apr 27, 2023 · 0 comments
Open

Load plugin after CoCart via plugins_loaded hook #49

seb86 opened this issue Apr 27, 2023 · 0 comments

Comments

@seb86
Copy link
Member

seb86 commented Apr 27, 2023

To improve performance and to ensure the plugin loads once CoCart has been loaded, this plugin must load via the plugins_loaded hook with a priority of 11.

The reason behind this is v5.0 of CoCart has been restructured to improve performance and compatibility with WooCommerce and since WordPress loads all plugins in alphabetical order. It ensures that this add-on for CoCart is loading in the right order and not at the same time of all plugins which can be 50/50 hit or miss when connecting to another plugin.

This change is only for the main plugin file that contains the plugin header information. Not the load-package.php file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant