本文整理匯總了PHP中SwpmUtils::get_all_membership_levels方法的典型用法代碼示例。如果您正苦於以下問題:PHP SwpmUtils::get_all_membership_levels方法的具體用法?PHP SwpmUtils::get_all_membership_levels怎麽用?PHP SwpmUtils::get_all_membership_levels使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類SwpmUtils
的用法示例。
在下文中一共展示了SwpmUtils::get_all_membership_levels方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: get_template_directory
<?php
//wp_enqueue_script('jquery.data-tables', SIMPLE_WP_MEMBERSHIP_URL . '/js/data-tables.js');
//wp_enqueue_style('style.data-tables', SIMPLE_WP_MEMBERSHIP_URL . '/css/data-tables.css');
//wp_enqueue_script('downloaders', SIMPLE_WP_MEMBERSHIP_URL . '/downloaders/js/downloaders.js');
include_once SIMPLE_WP_MEMBERSHIP_PATH . 'materials/classes/Class_SWPM_Materials.php';
include get_template_directory() . '/page-templates/members-area/classes/Class_MembersArea.php';
$class_materials = new SWPMMaterials();
$class_members = new MembersArea();
$swpm = new SimpleWpMembership();
$auth = SwpmAuth::get_instance();
$get_membership_levels = SwpmUtils::get_all_membership_levels();
$course_array = $class_members->getCourseMaterialsFromDB();
$relative_plugin_url = str_replace($_SERVER['DOCUMENT_ROOT'], "", SIMPLE_WP_MEMBERSHIP_PATH);
include_once SIMPLE_WP_MEMBERSHIP_PATH . 'materials/views/view.php';