Facet init

DescriptionDescription

This event is triggered when facets are initialized before to be rendered asynchronously. Facets can be empty at this time if it was not put into cache by the plugin.

ArgumentsArguments

ArgumentTypeDescription
facets objectHolds facet ids and associated properties

ExampleExample

JS
Grid settings – JS field
wpgb.facets.on( 'init', function( facets ) {

	console.log( 'init', facets  );

} );