handler = $handler; } /** * Returns the conditionals based on which this loadable should be active. * * @return array The conditionals. */ public static function get_conditionals(): array { return [ Admin_Conditional::class, ]; } /** * Registers the hooks for the Yoast plugins tab. * * @return void */ public function register_hooks(): void { global $wp_version; if ( \version_compare( $wp_version, '7.0-alpha0', '<' ) ) { return; } \add_filter( 'plugins_list', [ $this->handler, 'filter_plugins_list' ] ); \add_filter( 'plugins_list_status_text', [ $this->handler, 'get_status_text' ], 10, 3 ); } }