Italian (Italy)
Knowledge Base  >  Vik Restaurants  >  Hooks  >  Offerte  >  Before Register

do_action_ref_array( 'vikrestaurants_before_register_take_away_deals', array &$rows )

Fires after loading the available take-away deals from the database.


Description

Trigger hook to allow external plugins to manipulate the list of available deals. Here it is possible to attach new take-away deals at runtime or the detach the configured ones.


Parameters

&$rows

(array)  An array of objects, holding the information of the deals.


Example

/**
 * Trigger hook to allow external plugins to manipulate the list of
 * available deals through this helper class.
 *
 * @param  object[]  &$rows  An array of deal records.
 */
add_action('vikrestaurants_before_register_take_away_deals', function(&$rows) {
    /**
     * @todo it is possible to manipulate here the query
     */
});

Changelog

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