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
document.addEventListener(‘om.Campaigns.init’, function(event) { // This event is passed the Campaigns object console.log(event.detail.Campaigns); } );Continue reading
document.addEventListener(‘om.Main.parseCampaigns’, function(event) { // This event is passed the xhr object console.log(event.detail.xhr); } );Continue reading
document.addEventListener(‘om.Main.init’, function(event) {} );Continue reading
document.addEventListener(‘om.Api.init’, function(event) {} );Continue reading
document.addEventListener(‘om.Campaign.load’, function(event) { console.log(event.detail); });Continue reading
document.addEventListener(‘EVENT NAME’, function(event) {} );Continue reading
/** * 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
$servername = “your_server”; // change your_server with your actual database server $username = “your_username”; // change your_username with your actual database username $password = “your_password”; // change your_password with your actual database password $dbname = “your_database”; // change your_database with…Continue reading