deep88
2 months ago
3444
8
Laravel

HOw can i write extensible code in PHP

Posted 2 months ago by deep88

I want to allow additional code execution at specific points of time. for example (WordPress)

function pw_edd_track_cart_add() {
// additional code to be executed
}
add_action('edd_add_to_cart', 'pw_edd_track_cart_add');

Please sign in or create an account to participate in this conversation.