$active Active plugin basenames. */ public static function outdated( array $active ): bool { return in_array( self::PRO_FILE, $active, true ) && ! defined( 'FORENSIX_PRO_VERSION' ); } /** * Prints the notice. */ public static function render(): void { if ( ! current_user_can( 'activate_plugins' ) || ! self::outdated( (array) get_option( 'active_plugins', array() ) ) ) { return; } echo '

' . esc_html__( 'Forensix Digital Pro needs an update to work with this version of Forensix Digital.', 'forensix-digital' ) . ' '; echo esc_html__( 'Please install Forensix Digital Pro 0.2.0 or newer. You can download it from your account on forensix.digital. Your settings and data are kept.', 'forensix-digital' ) . '

'; echo '

' . esc_html__( 'Open my account', 'forensix-digital' ) . '

'; } }