$this->get_option( 'name' ), 'singular_name' => $this->get_option( 'singular_name' ), ); $args = array( 'labels' => $labels, 'description' => $this->get_option( 'description' ), 'public' => false, 'publicly_queryable' => false, 'show_ui' => false, 'show_in_menu' => false, 'query_var' => false, 'rewrite' => false, 'capability_type' => 'post', 'has_archive' => false, 'hierarchical' => false, 'supports' => array(), ); register_post_type( 'forminator_polls', $args ); } /** * Module option * * @return array */ public function options() { return array( 'name' => esc_html__( 'Polls', 'forminator' ), 'singular_name' => esc_html__( 'Poll', 'forminator' ), 'description' => esc_html__( 'Create polls, and collect user data. Choose a visualization style that best suits your needs.', 'forminator' ), 'button_label' => esc_html__( 'New Poll', 'forminator' ), 'icon' => '', ); } }