本文整理汇总了PHP中SwpmUtils::get_registration_link方法的典型用法代码示例。如果您正苦于以下问题:PHP SwpmUtils::get_registration_link方法的具体用法?PHP SwpmUtils::get_registration_link怎么用?PHP SwpmUtils::get_registration_link使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SwpmUtils
的用法示例。
在下文中一共展示了SwpmUtils::get_registration_link方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: admin_settings
public function admin_settings()
{
$current_tab = SwpmSettings::get_instance()->current_tab;
switch ($current_tab) {
case 6:
include SIMPLE_WP_MEMBERSHIP_PATH . 'views/admin_addon_settings.php';
break;
case 4:
$link_for = filter_input(INPUT_POST, 'swpm_link_for', FILTER_SANITIZE_STRING);
$member_id = filter_input(INPUT_POST, 'member_id', FILTER_SANITIZE_NUMBER_INT);
$send_email = filter_input(INPUT_POST, 'swpm_reminder_email', FILTER_SANITIZE_NUMBER_INT);
$links = SwpmUtils::get_registration_link($link_for, $send_email, $member_id);
include SIMPLE_WP_MEMBERSHIP_PATH . 'views/admin_tools_settings.php';
break;
case 2:
include SIMPLE_WP_MEMBERSHIP_PATH . 'views/payments/admin_payment_settings.php';
break;
default:
include SIMPLE_WP_MEMBERSHIP_PATH . 'views/admin_settings.php';
break;
}
}
示例2: handle_main_settings_admin_menu
public function handle_main_settings_admin_menu()
{
do_action('swpm_settings_menu_start');
?>
<div class="wrap swpm-admin-menu-wrap"><!-- start wrap -->
<h1><?php
echo SwpmUtils::_('Simple WP Membership::Settings');
?>
</h1><!-- page title -->
<!-- start nav menu tabs -->
<?php
do_action("swpm-draw-settings-nav-tabs");
?>
<!-- end nav menu tabs -->
<?php
do_action('swpm_settings_menu_after_nav_tabs');
//Switch to handle the body of each of the various settings pages based on the currently selected tab
$current_tab = $this->current_tab;
switch ($current_tab) {
case 1:
//General settings
include SIMPLE_WP_MEMBERSHIP_PATH . 'views/admin_settings.php';
break;
case 2:
//Payment settings
include SIMPLE_WP_MEMBERSHIP_PATH . 'views/payments/admin_payment_settings.php';
break;
case 3:
//Email settings
include SIMPLE_WP_MEMBERSHIP_PATH . 'views/admin_settings.php';
break;
case 4:
//Tools
$link_for = filter_input(INPUT_POST, 'swpm_link_for', FILTER_SANITIZE_STRING);
$member_id = filter_input(INPUT_POST, 'member_id', FILTER_SANITIZE_NUMBER_INT);
$send_email = filter_input(INPUT_POST, 'swpm_reminder_email', FILTER_SANITIZE_NUMBER_INT);
$links = SwpmUtils::get_registration_link($link_for, $send_email, $member_id);
include SIMPLE_WP_MEMBERSHIP_PATH . 'views/admin_tools_settings.php';
break;
case 5:
//Advanced settings
include SIMPLE_WP_MEMBERSHIP_PATH . 'views/admin_settings.php';
break;
case 6:
//Addon settings
include SIMPLE_WP_MEMBERSHIP_PATH . 'views/admin_addon_settings.php';
break;
default:
//The default fallback (general settings)
include SIMPLE_WP_MEMBERSHIP_PATH . 'views/admin_settings.php';
break;
}
echo '</div>';
//<!-- end of wrap -->
}