当前位置: 首页>>代码示例>>PHP>>正文


PHP SwpmUtils::get_registration_link方法代码示例

本文整理汇总了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;
     }
 }
开发者ID:andrewfieldwmg,项目名称:greenschoolsproject,代码行数:22,代码来源:class.simple-wp-membership.php

示例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 -->
    }
开发者ID:jesusmarket,项目名称:jesusmarket,代码行数:57,代码来源:class.swpm-settings.php


注:本文中的SwpmUtils::get_registration_link方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。