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