dashed-slug.net › Forums › General discussion › No trigger from action hooks › Reply To: No trigger from action hooks
		January 6, 2019 at 12:54 pm
		
		#5491
		
		
		
	
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');

