$plugin_data ) { if ( is_plugin_active( $plugin_file ) ) { $active_plugin_names[] = $plugin_data; } } } return $active_plugin_names; } /** * @return array */ public function get_active_plugin_names() { return wp_list_pluck( $this->get_active_plugins(), 'Name' ); } }