BSF_Analytics_Stats::format_plugin( string $plugin )

Format plugin data.


Description


Parameters

$plugin

(string) (Required) plugin.


Return

(array) formatted plugin data.


Source

File: admin/bsf-analytics/class-bsf-analytics-stats.php

		public function format_plugin( $plugin ) {
			return array(
				'name'        => html_entity_decode( $plugin['Name'], ENT_COMPAT, 'UTF-8' ),
				'url'         => $plugin['PluginURI'],
				'version'     => $plugin['Version'],
				'slug'        => $plugin['TextDomain'],
				'author_name' => html_entity_decode( wp_strip_all_tags( $plugin['Author'] ), ENT_COMPAT, 'UTF-8' ),
				'author_url'  => $plugin['AuthorURI'],
			);
		}

Changelog

Changelog
Version Description
1.0.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.