I reply to all queries on the forums and via email, once per day, Monday to Friday (not weekends).

If you are new here, please see some information on how to ask for support. Thank you!

Reply To: No trigger from action hooks

dashed-slug.net Forums General discussion No trigger from action hooks Reply To: No trigger from action hooks

#5491
Anonymous
Inactive

Custom plugin code (headers removed):

function my_action_wallets_move_receive( $data ) {

error_log( print_r( $data, true ) ); // prints out a stdClass object

$file="/var/www/html/txs/logs/wallets_move_receive-tx-". date('Y-m-d') .".logfile";

if (!file_exists($file))
{
// create file
file_put_contents($file, " ", FILE_APPEND);
chmod($file,0660);
}

file_put_contents( $file,print_r( $data, true ),FILE_APPEND );
}

//add_action( 'wallets_move_receive', 'my_action_wallets_move_receive' ,1,1);
add_action( 'wallets_move_receive', 'my_action_wallets_move_receive');