mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-15 20:53:39 +09:00
Version 1.0.41
This commit is contained in:
@@ -88,13 +88,19 @@ class UM_Admin_Access {
|
||||
*** @add form metabox
|
||||
***/
|
||||
function add_metabox_form() {
|
||||
global $ultimatemember;
|
||||
|
||||
$types = get_post_types();
|
||||
$types = $ultimatemember->query->get_post_types;
|
||||
foreach($types as $post_type) {
|
||||
if ( $this->core_post_type( $post_type ) ) return;
|
||||
add_meta_box('um-admin-access-settings', __('Access Control'), array(&$this, 'load_metabox_form'), $post_type, 'side', 'default');
|
||||
|
||||
if ( !$this->core_post_type( $post_type ) ) {
|
||||
|
||||
add_meta_box('um-admin-access-settings', __('Access Control'), array(&$this, 'load_metabox_form'), $post_type, 'side', 'default');
|
||||
|
||||
}
|
||||
|
||||
do_action('um_admin_custom_access_metaboxes');
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user