protected function get_plugin_info( $slug ) {

		$args = (object) [ 'slug' => $slug ];

		$request = [
			'action'  => 'plugin_information',
			'timeout' => 15,
			'request' => serialize( $args ),
		];

		$url = Plugin::WP_Plugin_Info()->getOption( 'url', 'wp-api' );

		$resp = wp_remote_post( $url, [ 'body' => $request ] );

		$resp = isset( $resp['body'] ) ? unserialize( $resp['body'] ) : [];

		unset( $resp->sections, $resp->versions, $resp->screenshots );

		return (array) $resp;
	}
protected function get_plugin_info( $slug ) {

		$args = (object) [ 'slug' => $slug ];

		$request = [
			'action'  => 'plugin_information',
			'timeout' => 15,
			'request' => serialize( $args ),
		];

		$url = Plugin::WP_Plugin_Info()->getOption( 'url', 'wp-api' );

		$resp = wp_remote_post( $url, [ 'body' => $request ] );

		$resp = isset( $resp['body'] ) ? unserialize( $resp['body'] ) : [];

		unset( $resp->sections, $resp->versions, $resp->screenshots );

		return (array) $resp;
	}
protected function get_plugin_info ( $ slug ) { $ args = ( object ) [ 'slug' => $ slug ] ; $ request = [ 'action' => 'plugin_information' , 'timeout' => 15 , 'request' => serialize ( $ args ) , ] ; $ url = Plugin :: WP_Plugin_Info ( ) -> getOption ( 'url' , 'wp-api' ) ; $ resp = wp_remote_post ( $ url , [ 'body' => $ request ] ) ; $ resp = isset ( $ resp [ 'body' ] ) ? unserialize ( $ resp [ 'body' ] ) : [ ] ; unset ( $ resp -> sections , $ resp -> versions , $ resp -> screenshots ) ; return ( array ) $ resp ; }
Get plugin info in WordPress API.

@param string $slug → WordPress plugin slug.

@return array → plugin info
Get plugin info in WordPress API .