$data ) { $slug = dirname( $file ); if ( '.' === $slug ) { $slug = basename( $file, '.php' ); } if ( 'robotstxt-manager' === $slug ) { return is_plugin_active( $file ); } } return false; } /** * Show a dismissible notice on the plugins list screen when the manager is missing. * * @since 1.6.2 * * @return void */ public function maybe_show_plugins_notice(): void { $screen = function_exists( 'get_current_screen' ) ? get_current_screen() : null; if ( null === $screen ) { return; } if ( ! in_array( $screen->id, array( 'plugins', 'plugins-network' ), true ) ) { return; } if ( ! current_user_can( 'manage_options' ) ) { return; } if ( self::is_manager_active() ) { return; } if ( get_user_meta( get_current_user_id(), self::DISMISSED_META_KEY, true ) ) { return; } $dismiss_url = wp_nonce_url( add_query_arg( 'action', self::DISMISS_ACTION, self_admin_url( 'admin.php' ) ), self::DISMISS_ACTION ); ?>

Manager (by ROBOTSTXT) to be installed and active to receive updates.', 'robotstxt-2fa' ), esc_url( self::MANAGER_URL ) ) ); ?>

Manager (by ROBOTSTXT) to be installed and active to receive updates.', 'robotstxt-2fa' ), esc_url( self::MANAGER_URL ) ) ); ?>