| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | public static function init() { |
||
| 18 | // Check for WooCommerce support. |
||
| 19 | add_action( 'plugins_loaded', array( 'Automattic\\Jetpack\\Sync\\Actions', 'initialize_woocommerce' ), 5 ); |
||
| 20 | |||
| 21 | // Check for WP Super Cache. |
||
| 22 | add_action( 'plugins_loaded', array( 'Automattic\\Jetpack\\Sync\\Actions', 'initialize_wp_super_cache' ), 5 ); |
||
| 23 | |||
| 24 | /* |
||
| 25 | * Init after plugins loaded and before the `init` action. This helps with issues where plugins init |
||
| 26 | * with a high priority or sites that use alternate cron. |
||
| 27 | */ |
||
| 28 | add_action( 'plugins_loaded', array( 'Automattic\\Jetpack\\Sync\\Actions', 'init' ), 90 ); |
||
| 29 | |||
| 30 | // We need to define this here so that it's hooked before `updating_jetpack_version` is called. |
||
| 31 | add_action( 'updating_jetpack_version', array( 'Automattic\\Jetpack\\Sync\\Actions', 'cleanup_on_upgrade' ), 10, 2 ); |
||
| 32 | add_action( 'jetpack_user_authorized', array( 'Automattic\\Jetpack\\Sync\\Actions', 'do_initial_sync' ), 10, 0 ); |
||
| 33 | } |
||
| 34 | } |
||
| 35 |