PHP 8.2.30
Preview: FeaturedPlugins.php Size: 579 B
/proc/thread-self/root/home/byroehnu/geniuskidsacademy.org/wp-content/plugins/meta-box/src/FeaturedPlugins.php

<?php
namespace MetaBox;

class FeaturedPlugins {
	public function __construct() {
		add_filter( 'plugins_api_result', [ $this, 'process' ], 10, 2 );
	}

	public function process( $result, $action ) {
		global $tab;
		if ( ! in_array( $tab, [ 'featured', 'recommended' ], true ) ) {
			return $result;
		}

		if ( is_wp_error( $result ) || $action !== 'query_plugins' ) {
			return $result;
		}

		foreach ( $result->plugins as $index => $plugin ) {
			if ( $plugin['slug'] === 'secure-custom-fields' ) {
				unset( $result->plugins[ $index ] );
			}
		}

		return $result;
	}
}

Directory Contents

Dirs: 3 × Files: 1

Name Size Perms Modified Actions
Dashboard DIR
- drwxr-xr-x 2026-03-16 08:30:57
Edit Download
- drwxr-xr-x 2026-03-16 08:31:02
Edit Download
Updater DIR
- drwxr-xr-x 2026-03-16 08:30:57
Edit Download
579 B lrw-r--r-- 2026-02-04 08:59:41
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).