PATH:
home
/
lab2454c
/
elementalmill.com
/
wp-content
/
plugins
/
ultimate-member
/
includes
/
core
<?php namespace um\core; if ( ! defined( 'ABSPATH' ) ) exit; if ( ! class_exists( 'um\core\Common' ) ) { /** * Class Common * * @package um\core */ class Common { /** * Common constructor. */ function __construct() { add_action( 'init', array( &$this, 'create_post_types' ), 1 ); add_filter( 'body_class', array( &$this, 'remove_admin_bar' ), 1000, 1 ); } /** * Remove admin bar classes * * @param array $classes * * @return array */ function remove_admin_bar( $classes ) { if ( is_user_logged_in() ) { if ( um_user( 'can_not_see_adminbar' ) ) { $search = array_search( 'admin-bar', $classes ); if ( ! empty( $search ) ) { unset( $classes[ $search ] ); } } } return $classes; } /** * Create taxonomies for use for UM */ function create_post_types() { register_post_type( 'um_form', array( 'labels' => array( 'name' => __( 'Forms', 'ultimate-member' ), 'singular_name' => __( 'Form', 'ultimate-member' ), 'add_new' => __( 'Add New', 'ultimate-member' ), 'add_new_item' => __( 'Add New Form', 'ultimate-member' ), 'edit_item' => __( 'Edit Form', 'ultimate-member' ), 'not_found' => __( 'You did not create any forms yet', 'ultimate-member' ), 'not_found_in_trash' => __( 'Nothing found in Trash', 'ultimate-member' ), 'search_items' => __( 'Search Forms', 'ultimate-member' ), ), 'capabilities' => array( 'edit_post' => 'manage_options', 'read_post' => 'manage_options', 'delete_post' => 'manage_options', 'edit_posts' => 'manage_options', 'edit_others_posts' => 'manage_options', 'delete_posts' => 'manage_options', 'publish_posts' => 'manage_options', 'read_private_posts' => 'manage_options', ), 'show_ui' => true, 'show_in_menu' => false, 'public' => false, 'show_in_rest' => true, 'supports' => array( 'title' ), ) ); if ( UM()->options()->get( 'members_page' ) || ! get_option( 'um_options' ) ) { register_post_type( 'um_directory', array( 'labels' => array( 'name' => __( 'Member Directories', 'ultimate-member' ), 'singular_name' => __( 'Member Directory', 'ultimate-member' ), 'add_new' => __( 'Add New', 'ultimate-member' ), 'add_new_item' => __( 'Add New Member Directory', 'ultimate-member' ), 'edit_item' => __( 'Edit Member Directory', 'ultimate-member' ), 'not_found' => __( 'You did not create any member directories yet', 'ultimate-member' ), 'not_found_in_trash' => __( 'Nothing found in Trash', 'ultimate-member' ), 'search_items' => __( 'Search Member Directories', 'ultimate-member' ), ), 'capabilities' => array( 'edit_post' => 'manage_options', 'read_post' => 'manage_options', 'delete_post' => 'manage_options', 'edit_posts' => 'manage_options', 'edit_others_posts' => 'manage_options', 'delete_posts' => 'manage_options', 'publish_posts' => 'manage_options', 'read_private_posts' => 'manage_options', ), 'show_ui' => true, 'show_in_menu' => false, 'public' => false, 'show_in_rest' => true, 'supports' => array( 'title' ), ) ); } } } }
[-] um-filters-account.php
[edit]
[-] um-actions-login.php
[edit]
[-] um-actions-misc.php
[edit]
[-] class-access.php
[edit]
[-] class-plugin-updater.php
[edit]
[-] class-modal.php
[edit]
[-] um-filters-fields.php
[edit]
[-] class-common.php
[edit]
[-] class-options.php
[edit]
[-] um-filters-profile.php
[edit]
[-] class-profile.php
[edit]
[-] class-fonticons.php
[edit]
[-] class-member-directory-meta.php
[edit]
[+]
..
[-] um-filters-commenting.php
[edit]
[-] class-permalinks.php
[edit]
[-] class-member-directory.php
[edit]
[-] class-templates.php
[edit]
[-] class-setup.php
[edit]
[-] class-rewrite.php
[edit]
[-] um-filters-navmenu.php
[edit]
[-] class-date-time.php
[edit]
[-] um-actions-account.php
[edit]
[-] um-filters-avatars.php
[edit]
[-] class-external-integrations.php
[edit]
[-] um-actions-register.php
[edit]
[-] um-actions-save-profile.php
[edit]
[-] class-builtin.php
[edit]
[-] um-actions-access.php
[edit]
[-] um-filters-files.php
[edit]
[-] class-user-posts.php
[edit]
[-] um-filters-user.php
[edit]
[-] class-multisite.php
[edit]
[-] class-gdpr.php
[edit]
[-] class-account.php
[edit]
[-] class-roles-capabilities.php
[edit]
[-] um-actions-profile.php
[edit]
[-] class-files.php
[edit]
[-] um-actions-ajax.php
[edit]
[-] um-actions-wpadmin.php
[edit]
[-] class-form.php
[edit]
[-] class-enqueue.php
[edit]
[-] class-ajax-common.php
[edit]
[-] um-filters-login.php
[edit]
[-] class-register.php
[edit]
[-] class-fields.php
[edit]
[-] class-user.php
[edit]
[-] class-password.php
[edit]
[-] um-actions-core.php
[edit]
[-] um-actions-global.php
[edit]
[-] class-mail.php
[edit]
[-] class-cron.php
[edit]
[-] class-validation.php
[edit]
[-] .htaccess
[edit]
[-] class-logout.php
[edit]
[-] class-shortcodes.php
[edit]
[-] um-actions-user.php
[edit]
[-] class-login.php
[edit]
[+]
rest
[-] class-uploader.php
[edit]
[-] um-actions-form.php
[edit]
[-] class-query.php
[edit]
[-] um-filters-misc.php
[edit]