array( 'config' => array( 'VisibilityOptions' => array( 'config' => array( 'label' => __( 'Visibility', 'thrive-cb' ), 'options' => array( array( 'value' => 'public', 'name' => __( 'Public', 'thrive-cb' ), ), array( 'value' => 'private', 'name' => __( 'Private', 'thrive-cb' ), ), array( 'value' => 'password', 'name' => __( 'Password protected', 'thrive-cb' ), ), ), ), ), 'PublishOptions' => [], 'UnpublishOptions' => [], ), ), ); } /** * @return array */ public function own_components() { $post_config = [ 'typography' => [ 'hidden' => true, ], 'layout' => [ 'hidden' => true, ], 'borders' => [ 'hidden' => true, ], 'animation' => [ 'hidden' => true, ], 'background' => [ 'hidden' => true, ], 'shadow' => [ 'hidden' => true, ], 'responsive' => [ 'hidden' => true, ], 'styles-templates' => [ 'hidden' => true, ], ]; $post_config = $this->post_main_option() + $post_config; /* filter in order to add more components to this in the Theme Builder */ return apply_filters( 'tcb_post_element_extend_config', $post_config ); } }