get_option( 'plugins' ); $scheduled_crons = array(); if ( is_array( $plugins ) && 0 < count( $plugins ) ) { foreach ( $plugins as $slug => $data ) { $fs = freemius( $slug ); $next_execution = $fs->next_sync_cron(); $last_execution = $fs->last_sync_cron(); if ( false !== $next_execution ) { $scheduled_crons[ $slug ][] = array( 'name' => $fs->get_plugin_name(), 'slug' => $slug, 'type' => 'sync_cron', 'last' => $last_execution, 'next' => $next_execution, ); } $next_install_execution = $fs->next_install_sync(); $last_install_execution = $fs->last_install_sync(); if ( false !== $next_install_execution || false !== $last_install_execution ) { $scheduled_crons[ $slug ][] = array( 'name' => $fs->get_plugin_name(), 'slug' => $slug, 'type' => 'install_sync', 'last' => $last_install_execution, 'next' => $next_install_execution, ); } } } ?>