Tribe__Plugins::get_plugin_by_key( string $search_key, string $search_val )
Searches the plugin list for key/value pair and return the full details for that plugin
Contents
Parameters
- $search_key
-
(string) (Required) The array key this value will appear in
- $search_val
-
(string) (Required) The value itself
Return
(array|null)
Source
File: src/Tribe/Plugins.php
public function get_plugin_by_key( $search_key, $search_val ) { foreach ( $this->tribe_plugins as $plugin ) { if ( isset( $plugin[ $search_key ] ) && $plugin[ $search_key ] === $search_val ) { return $plugin; } } return null; }