init();
// was anything POSTed?
if ( isset( $_POST['s2_admin'] ) && 'user' === $_POST['s2_admin'] ) {
if ( false === wp_verify_nonce( $_REQUEST['_wpnonce'], 'subscribe2-user_subscribers' . S2VERSION ) ) {
die( '
' . esc_html__( 'Security error! Your request cannot be completed.', 'subscribe2' ) . '
' );
}
do_action( 's2_subscription_submit' );
}
// show our form
echo '';
global $user_ID;
$userid = $s2_forms->get_userid();
$user = get_userdata( $userid );
if ( $userid === $user_ID ) {
echo '
' . esc_html__( 'Your Notification Settings', 'subscribe2' ) . "
\r\n";
} else {
echo '
' . esc_html__( 'Notification Settings for user:', 'subscribe2' ) . ' ' . esc_html( $user->display_name ) . '
' . "\r\n";
}
echo '
' . "\r\n";
echo '
' . "\r\n";
require ABSPATH . 'wp-admin/admin-footer.php';
// just to be sure
die;