PluginProbe
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls / 6.5.1
Poll Maker by AYS – Versus Polls, Anonymous Polls, Image Polls v6.5.1
6.5.1 6.5.0 6.4.9 6.4.8 6.4.7 6.4.6 6.4.5 6.4.4 6.4.3 6.4.2 6.4.1 6.4.0 6.3.9 6.3.8 6.3.7 6.3.6 6.3.5 6.3.4 6.3.3 5.6.0 5.6.1 5.6.2 5.6.3 5.6.4 5.6.5 All 154 releases
← All changes | includes/class-poll-maker-custom-post-type.php +13 -13 6.3.4 → 6.5.1 View file →
@@ -34,15 +34,15 @@
34 34 }
35 35
36 36 public function ays_poll_register_custom_post_type(){
37 37 $args = array(
38 - 'public' => true,
39 - 'rewrite' => true,
40 - 'show_in_menu' => false,
41 - 'exclude_from_search' => false,
42 - 'show_ui' => false,
43 - 'show_in_nav_menus' => false,
44 - 'show_in_rest' => false
38 + 'public' => true,
39 + 'rewrite' => true,
40 + 'show_in_menu' => false,
41 + 'exclude_from_search' => false,
42 + 'show_ui' => false,
43 + 'show_in_nav_menus' => false,
44 + 'show_in_rest' => false
45 45 );
46 46
47 47 register_post_type( 'ays-poll-maker', $args );
48 48 $this->ays_poll_custom_rewrite_rule();
@@ -57,14 +57,14 @@
57 57
58 58 $post_content = '[ays_poll id="'.$poll_id.'"]';
59 59
60 60 $new_post = array(
61 - 'post_title' => $poll_title,
62 - 'post_author' => $author_id,
63 - 'post_type' => 'ays-poll-maker', // Custom post type name is -> ays-poll-maker
64 - 'post_content' => $post_content,
65 - 'post_status' => 'draft',
66 - 'post_date' => current_time( 'mysql' ),
61 + 'post_title' => $poll_title,
62 + 'post_author' => $author_id,
63 + 'post_type' => 'ays-poll-maker', // Custom post type name is -> ays-poll-maker
64 + 'post_content' => $post_content,
65 + 'post_status' => 'draft',
66 + 'post_date' => current_time( 'mysql' ),
67 67 );
68 68 $post_id = wp_insert_post($new_post);
69 69 if($update){
70 70 if(isset($post_id) && $post_id > 0){