// Define the API URL const apiUrl = ‘https://api.example.com/data’; // Make a GET request fetch(apiUrl) .then(response => { if (!response.ok) { throw new Error(‘Network response was not ok’); } return response.json(); }) .then(data => { console.log(data); }) .catch(error => {…Continue reading
document.addEventListener(‘om.Campaign.load’, function(event) { console.log(event.detail); } );Continue reading
function mepr_fallback_failed_txn( $txn ) { MeprGroupsCtrl::create_fallback( $txn ); } add_action( ‘mepr-txn-status-failed’, ‘mepr_fallback_failed_txn’ );Continue reading
function mepr_delete_expired_txns() { $subscriptions = MeprSubscription::get_all(); if( is_array( $subscriptions ) && !empty( $subscriptions ) ) { foreach( $subscriptions as $subscription ) { $subscription = new MeprSubscription( $subscription->id ); if( $subscription->is_cancelled() && $subscription->is_expired() ) { $subscription->destroy(); } } } } add_action(…Continue reading
google20ec315e3dcb494d.htmlContinue reading
/* * This will work only for Charitable Recurring Donations 1.4.0.4+ * This accepts the HTML of the text box and with a little fancy replacing, allow you to add attributes. */ add_filter( ‘charitable_recurring_custom_amount_input’, ‘test_charitable_recurring_custom_amount_input’, 10, 4 ); function test_charitable_recurring_custom_amount_input(…Continue reading
function custom_hide_sidebar_on_mobile() { echo ‘ ‘; } add_action(‘wp_head’, ‘custom_hide_sidebar_on_mobile’);Continue reading