Skip to content
Snippets Groups Projects

Devel

Closed Krzysztof Dyszczyk requested to merge devel into master
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -10,6 +10,9 @@ if ( ! class_exists( 'WPDesk_Requirement_Checker_1_10' ) ) {
* have to be compatible with PHP 5.2.x
*/
class WPDesk_Requirement_Checker_1_10 {
const HOOK_PRIORITY_LOAD_AS_FIRST = -10;
/** @var string */
private $plugin_name = '';
@@ -60,7 +63,7 @@ if ( ! class_exists( 'WPDesk_Requirement_Checker_1_10' ) ) {
* Should be used when you want to check if others plugin are loaded (WC for example)
*/
public function check_requirements_and_load_plugin_deferred() {
add_action( "plugins_loaded", array( $this, "check_requirements_and_load_plugin" ) );
add_action( "plugins_loaded", array( $this, "check_requirements_and_load_plugin" ), self::HOOK_PRIORITY_LOAD_AS_FIRST );
}
/**
Loading