mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
- removed some deprecated variables;
- changed the structure of the menu item's custom fields;
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
<?php
|
||||
// Exit if accessed directly.
|
||||
if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit;
|
||||
|
||||
if ( ! class_exists( 'UM_Functions' ) ) {
|
||||
|
||||
@@ -11,23 +9,10 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
||||
class UM_Functions {
|
||||
|
||||
|
||||
/**
|
||||
* @var
|
||||
*/
|
||||
var $options;
|
||||
|
||||
|
||||
/**
|
||||
* @var array variable for Flags
|
||||
*/
|
||||
var $screenload_flags;
|
||||
|
||||
|
||||
/**
|
||||
* UM_Functions constructor.
|
||||
*/
|
||||
function __construct() {
|
||||
$this->init_variables();
|
||||
}
|
||||
|
||||
|
||||
@@ -91,14 +76,6 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Set variables
|
||||
*/
|
||||
function init_variables() {
|
||||
$this->options = get_option( 'um_options' );
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Help Tip displaying
|
||||
*
|
||||
@@ -344,6 +321,9 @@ if ( ! class_exists( 'UM_Functions' ) ) {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @return mixed|void
|
||||
*/
|
||||
function cpt_list() {
|
||||
/**
|
||||
* UM hook
|
||||
|
||||
Reference in New Issue
Block a user