-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaffiliate-shortcodes.php
More file actions
41 lines (37 loc) · 1.22 KB
/
affiliate-shortcodes.php
File metadata and controls
41 lines (37 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php
// Shortcode for displaying the affiliate dashboard
function affiliate_dashboard_shortcode() {
ob_start();
affiliate_dashboard();
return ob_get_clean();
}
add_shortcode('affiliate_dashboard', 'affiliate_dashboard_shortcode');
// Shortcode for displaying the affiliate registration form
function affiliate_registration_shortcode() {
ob_start();
affiliate_registration_form();
return ob_get_clean();
}
add_shortcode('affiliate_registration', 'affiliate_registration_shortcode');
// Shortcode for displaying the affiliate reports
function affiliate_reports_shortcode() {
ob_start();
affiliate_reports_page();
return ob_get_clean();
}
add_shortcode('affiliate_reports', 'affiliate_reports_shortcode');
// Shortcode for displaying the affiliate leaderboard
function affiliate_leaderboard_shortcode() {
ob_start();
display_affiliate_leaderboard();
return ob_get_clean();
}
add_shortcode('affiliate_leaderboard', 'affiliate_leaderboard_shortcode');
// Shortcode for displaying affiliate analytics
function affiliate_analytics_shortcode() {
ob_start();
display_affiliate_analytics();
return ob_get_clean();
}
add_shortcode('affiliate_analytics', 'affiliate_analytics_shortcode');
?>