Extension for Super Simple Events (https://nl.wordpress.org/plugins/super-simple-events/) to subscribe to events.
Just install the plugin. (see installation section).
Create or edit an event. Enable the checkbox ‘Enable subscriptions for this event’ to show the event subscription form.
To view all the subscriptions, go to www.your-site.com/wp-admin/admin.php?page=wp_sss
Wanted to view the subscriptions for one event? click on the event title on that page.
Go to the admin event subscriptions overview (www.your-site.com/wp-admin/admin.php?page=wp_sss)
Click on an event title in the table. On the next page you see a ‘download subscriptions’ link below the page title.
Filter to change the subscription form
function test_filter($subscription, $type) {
var_dump(‘Prepare subscription’);
return $subscription;
}
add_filter(‘super_simple_subscriptions_prepare’, ‘test_filter’, 10, 2);
function test_action($subscription, $type) {
var_dump(‘Action after subscription is saved or deleted’);
}
add_action(‘super_simple_subscriptions_saved’, ‘test_action’, 10, 2);
function test_delete($subscription_id) {
var_dump(‘Delete subscription’);
return $subscription_id;
}
add_filter(‘super_simple_subscriptions_delete’, ‘test_delete’);
function test_show_subscription_form($post_id) {
var_dump(‘Do some custom checks and return true or false’);
return TRUE;
}
add_filter(‘super_simple_subscriptions_show_subscription_form’, ‘test_show_subscription_form’);
function test_super_simple_subscriptions_form($content) {
var_dump(‘Change the subscription form’);
return $content;
}
add_filter(‘super_simple_subscriptions_form’, ‘test_super_simple_subscriptions_form’);