add_action(‘charitable_donor_loop_after_donor’, ‘example_charitable_donor_loop_after_donor’, 10, 2 ); function example_charitable_donor_loop_after_donor( $donor, $view_args ) { $user_id = $donor->get_user_id(); $campaign_id = ! empty ( $view_args[‘campaign’] ) ? $view_args[‘campaign’] : 0; if ( 0 === $campaign_id ) { return; } $args = array( ‘user_id’ => $user_id,…Continue reading
{ “data”: [ { “event_name”: “Purchase”, “event_time”: 1748569223, “action_source”: “website”, “user_data”: { “em”: [ “7b17fb0bd173f625b58636fb796407c22b3d16fc78302d79f0fd30c2fc2fc068” ], “ph”: [ null ] }, “attribution_data”: { “attribution_share”: “0.3” }, “custom_data”: { “currency”: “USD”, “value”: “142.52” }, “original_event_data”: { “event_name”: “Purchase”, “event_time”: 1748569223 }…Continue reading
document.addEventListener(‘DOMContentLoaded’, function() { // Select the input element by its id var usernameInput = document.getElementById(‘user_login’); // Check if the element exists to avoid any potential JavaScript errors if (usernameInput) { // Change the placeholder text usernameInput.placeholder = ‘Nome utente o…Continue reading
function generate_bulk_invoices() { if( isset( $_REQUEST[ ‘generate-invoices’ ] ) ) { global $wpdb; $query = “SELECT id FROM {$wpdb->prefix}mepr_transactions WHERE status in (‘complete’, ‘confirmed’, ‘refunded’)”; $txn_ids = $wpdb->get_results( $query ); foreach( $txn_ids as $txn_id ) { $invoices = new MePdfInvoicesCtrl();…Continue reading