Actions & Filters (Hooks)
FilterX provides a comprehensive set of WordPress actions and filters to extend and customize every aspect of the plugin without modifying core files.
Plugin Lifecycle
filterx/activatedParameters: none
Fired after FilterX is activated and database tables are created.
filterx/deactivatedParameters: none
Fired when FilterX is deactivated. Tables and data are preserved.
filterx/uninstalledParameters: none
Fired when plugin is deleted. All tables and options are removed.
Grid Hooks
filterx/grid/before_renderParameters: $grid_id_or_slug, $args
Fires before a grid starts rendering. Useful for enqueueing dependent assets.
filterx/grid/after_renderParameters: $grid_id_or_slug, $html, $query
Fires after grid HTML is generated. Receives the final HTML and the WP_Query object.
filterx/grid/query_argsParameters: $query_args, $grid
Filter the WP_Query arguments before the grid query runs. Add tax_query, meta_query, ordering, etc.
filterx/grid/htmlParameters: $html, $grid, $posts
Filter the final rendered grid HTML string before it's returned.
filterx/grid/item_dataParameters: $item_data, $post, $grid
Filter the data array for each grid item before it's passed to the grid-item template.
filterx/grid/before_itemParameters: $post, $grid, $index
Fires before each grid item is rendered.
filterx/grid/after_itemParameters: $post, $grid, $index
Fires after each grid item is rendered.
Facet Hooks
filterx/facet/sourcesParameters: $sources
Register custom facet data sources. The WooCommerce integration uses this to add wc:price, wc:stock_status, etc.
filterx/facet/value_labelParameters: $label, $value, $facet_config
Modify the display label for a facet value. Used by WooCommerce to format price labels with currency symbols.
filterx/rest/facet_createdParameters: $facet_id, $facet
Fires after a facet is created via the REST API.
filterx/rest/facet_updatedParameters: $facet_id, $facet
Fires after a facet is updated via the REST API.
filterx/rest/facet_deletedParameters: $facet_id, $facet
Fires after a facet is deleted via the REST API.
Indexer Hooks
filterx/indexer/reindex_facetParameters: $facet_id
Fires to trigger reindexing for a specific facet. Listen to this to run custom indexing logic.
filterx/indexer/post_typesParameters: $post_types
Filter the list of post types the indexer should process.
filterx/indexer/resolve_sourceParameters: $value, $source_key, $post_id
Filter the resolved index value for a given source key and post. Return a custom value to override default resolution.
WooCommerce Integration Hooks
filterx/rest/sample_post_dataParameters: $data, $post
Enrich the sample post data used in Card Builder previews. The WooCommerce integration adds all WC fields here.
filterx/grid/dynamic_data_initParameters: $dynamic_data
Register custom dynamic tag handlers. Pass a handler for your own {{namespace.field}} tags.
