includes/class-freemius.php
private function get_next_scheduled_cron( $name, $action_tag = '' ) {
            $this->_logger->entrance( $name );

            if ( ! $this->is_cron_on( $name ) ) {
                return false;
            }

            /**
             * @var object $cron_data
             */
            $cron_data = $this->get_cron_data( $name );

            $cron_blog_id = is_object( $cron_data ) && isset( $cron_data->blog_id ) ?
                $cron_data->blog_id :
                0;

            if ( 0 < $cron_blog_id ) {
                switch_to_blog( $cron_blog_id );
            }

            if ( empty( $action_tag ) ) {
                $action_tag = $name;
            }

            $next_scheduled = wp_next_scheduled( $this->get_action_tag( $action_tag ) );

            if ( 0 < $cron_blog_id ) {
                restore_current_blog();
            }

            return $next_scheduled;
        }
private function get_next_scheduled_cron( $name, $action_tag = '' ) {
            $this->_logger->entrance( $name );

            if ( ! $this->is_cron_on( $name ) ) {
                return false;
            }

            /**
             * @var object $cron_data
             */
            $cron_data = $this->get_cron_data( $name );

            $cron_blog_id = is_object( $cron_data ) && isset( $cron_data->blog_id ) ?
                $cron_data->blog_id :
                0;

            if ( 0 < $cron_blog_id ) {
                switch_to_blog( $cron_blog_id );
            }

            if ( empty( $action_tag ) ) {
                $action_tag = $name;
            }

            $next_scheduled = wp_next_scheduled( $this->get_action_tag( $action_tag ) );

            if ( 0 < $cron_blog_id ) {
                restore_current_blog();
            }

            return $next_scheduled;
        }
private function get_next_scheduled_cron ( $ name , $ action_tag = '' ) { $ this -> _logger -> entrance ( $ name ) ; if ( ! $ this -> is_cron_on ( $ name ) ) { return false ; } /**
             * @var object $cron_data
             */ $ cron_data = $ this -> get_cron_data ( $ name ) ; $ cron_blog_id = is_object ( $ cron_data ) && isset ( $ cron_data -> blog_id ) ? $ cron_data -> blog_id : 0 ; if ( 0 < $ cron_blog_id ) { switch_to_blog ( $ cron_blog_id ) ; } if ( empty ( $ action_tag ) ) { $ action_tag = $ name ; } $ next_scheduled = wp_next_scheduled ( $ this -> get_action_tag ( $ action_tag ) ) ; if ( 0 < $ cron_blog_id ) { restore_current_blog ( ) ; } return $ next_scheduled ; }
Unix timestamp for next cron execution or false if not scheduled.

@author Vova Feldman (@svovaf)
@since  2.0.0

@param string $name       Cron name.
@param string $action_tag Callback action tag.

@return int|false
Unix timestamp for next cron execution or false if not scheduled .