Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ramiabraham/be509227e39558d33b1c9f8b7aac0e17 to your computer and use it in GitHub Desktop.
Save ramiabraham/be509227e39558d33b1c9f8b7aac0e17 to your computer and use it in GitHub Desktop.
Change the notice in the affiliate dashboard for store credit balances.
<?php
/**
* Plugin Name: AffiliateWP - Store Credit Custom Dashboard Notice
* Plugin URI: http://affiliatewp.com
* Description: Change the notice in the affiliate dashboard for store credit balances.
* Author: ramiabraham
* Author URI: http://affiliatewp.com
* Version: 1.0
*/
function affwp_custom_store_credit_dashboard_notice() {
$notice = 'Your custom notice goes here';
return $notice;
}
add_filter('affwp_store_credit_affiliate_notice','affwp_custom_store_credit_dashboard_notice');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment