Italian (Italy)
Knowledge Base  >  Vik Restaurants  >  Hooks  >  Taxes  >  Before Query

do_action_ref_array( 'vikrestaurants_before_query_tax', mixed &$query )

Fires while building the query used to fetch the tax details.


Description

Trigger hook to allow external plugins to manipulate the query used to load the tax details.

TIP: any column with an alias that starts with rule_ will be automatically injected within the TaxRule instance.


Parameters

&$query

(mixed)  Either a query builder object or a string.


Example

/**
 * Trigger hook to allow external plugins to manipulate the query used
 * to load the tax details.
 *
 * @param  mixed  &$query  The query string or a query builder object.
 */
add_action('vikrestaurants_before_query_tax', function(&$query) {
    /**
     * @todo it is possible to manipulate here the query
     */
});

Changelog

Version Description
1.3 Introduced.
Ultimo aggiornamento: 2023-12-27
Utile?
Potrebbe interessarti:
This site uses cookies. By continuing to browse you accept their use. Further information