Falls du eigene PHP-Klassen in der Blade-Engine nutzen möchtest, ist dieser Hook ideal dafür geeignet.
Hook nach einem Produktupdate
1 2 3 4 5 6 7 8 |
function atkp_modify_bladedata_callback($bladedata) { $bladedata['eigenes'] = 'hallo'; //Die Variable "$eigenes" ist nun in der BladeEngine verfügbar. return $bladedata; } add_action('atkp_modify_bladedata', 'atkp_modify_bladedata_callback'); |
Parameter | Beschreibung |
bladedata | Das Array welches alle Klassen für die Engine bereit hält. |
Rückgabewert | Rückgabewert ist das Array. |
Tipp: Verwende ein Plugin wie My Custom Functions oder ein Child-Theme um deine Hooks einzubauen!