- Restricts router access to explicitly defined endpoint actions
This commit is contained in:
@@ -7,6 +7,14 @@ if(!defined('ABSPATH')) exit;
|
||||
|
||||
class Subscription {
|
||||
const ENDPOINT = 'subscription';
|
||||
const ACTION_CONFIRM = 'confirm';
|
||||
const ACTION_MANAGE = 'manage';
|
||||
const ACTION_UNSUBSCRIBE = 'unsubscribe';
|
||||
public $allowed_actions = array(
|
||||
self::ACTION_CONFIRM,
|
||||
self::ACTION_MANAGE,
|
||||
self::ACTION_UNSUBSCRIBE
|
||||
);
|
||||
|
||||
function confirm($data) {
|
||||
$subscription = new UserSubscription\Pages('confirm', $data);
|
||||
|
Reference in New Issue
Block a user