rental prices
This commit is contained in:
26
actions/WooCommerceBeforeAddToCartButtonAction.php
Normal file
26
actions/WooCommerceBeforeAddToCartButtonAction.php
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Actions;
|
||||||
|
|
||||||
|
use ofc\RadAction;
|
||||||
|
|
||||||
|
class WooCommerceBeforeAddToCartButtonAction extends RadAction
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* @var string WordPress hook to attach to.
|
||||||
|
*/
|
||||||
|
protected string $hookName = 'woocommerce_before_add_to_cart_button';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var int Hook priority.
|
||||||
|
*/
|
||||||
|
protected int $priority = 10;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Your action callback.
|
||||||
|
*/
|
||||||
|
public function callback()
|
||||||
|
{
|
||||||
|
echo "<p>yay!</p>";
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user