Skip to content

Commit

Permalink
Add meta for new post for course
Browse files Browse the repository at this point in the history
  • Loading branch information
Imran92 committed Jan 1, 2024
1 parent 3d82cd5 commit 05099e6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions includes/class-sensei-course.php
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,17 @@ public function set_up_meta_fields() {
'auth_callback' => [ $this, 'post_meta_auth_callback' ],
]
);
register_post_meta(
'course',
'_new_post',
[
'show_in_rest' => true,
'single' => true,
'type' => 'boolean',
'default' => true,
'auth_callback' => [ $this, 'post_meta_auth_callback' ],
]
);
/**
* Sets up the meta fields saved on course save in WP admin.
*
Expand Down

0 comments on commit 05099e6

Please sign in to comment.