om.Analytics.init

document.addEventListener(‘om.Analytics.init’, function(event) { console.log(event.detail.Analytics); console.log(event.detail.Campaign); } );Continue reading

om.Types.init

document.addEventListener(‘om.Types.init’, function(event) { // The Campaign type. console.log(event.detail.Types.type); // The Campaign Type object (one of Floating, Fullscreen, Inline, Popup, Slide) console.log(event.detail.Types.Type); } );Continue reading

om.Campaigns.init

document.addEventListener(‘om.Campaigns.init’, function(event) { // This event is passed the Campaigns object console.log(event.detail.Campaigns); } );Continue reading

Add Dropdown Field To Donation Form

/** * Shows how to add a custom dropdown in a donation form (this example the select field is called “Giving Type”) * * This snippet only works in Charitable 1.5 or above. * */ function wpchar_charitable_register_new_dropodown_field() { /** *…Continue reading