get_statistics(); $can_run_audit = Ahrefs_Seo_Data_Content::get()->can_run_new_audit(); $paused = Content_Audit::audit_is_paused(); $audit_in_progress = $stat['in_progress']; // both active or paused. $allow_run_audit = current_user_can( Ahrefs_Seo::CAP_CONTENT_AUDIT_RUN ); // For both [Run new audit] and [Resume] buttons. $allow_scope = current_user_can( Ahrefs_Seo::CAP_SETTINGS_AUDIT_VIEW ); if ( ! isset( $locals['header_class'] ) || ! is_array( $locals['header_class'] ) ) { $locals['header_class'] = []; } ?>