diff --git a/src/Admin.php b/src/Admin.php index 10dc3ce..1872d67 100644 --- a/src/Admin.php +++ b/src/Admin.php @@ -154,34 +154,30 @@ public function remove_quick_edit( $actions, $post ) { public function publishing_actions() { $mg_post_type = 'ssc_group'; global $post; - if ( $post && $post->post_type == $mg_post_type ) { - echo ''; - } ?> + + $group = new Group(); + $groups = $group->get_groups(); + + $outputGroups = [[ 'text' => __( 'Doesn\'t matter', 'simpleshop-cz' ), 'value' => '' ]]; + + foreach ( $groups as $value => $text ) { + $outputGroups[] = [ 'text' => $text, 'value' => $value ]; + } + ?> + + post_type === $mg_post_type ) : ?> + + - id || 'user-edit' === $current_screen->id) { + if ( 'profile' === $current_screen->id || 'user-edit' === $current_screen->id ) { wp_enqueue_script( 'jquery-ui-datepicker' ); } }