post_type, $post_types ); if ( $index ) { unset( $post_types[ $index ] ); } return $post_types; } public function vc_check_post_type_validation( $roles, $type ) { if ( $this->post_type === $type ) { return false; } return $roles; } public function change_preview_link_for_builder( $link ) { if ( isset( $_REQUEST['fl_builder'] ) ) { $link = add_query_arg( array( 'fl_builder' => '' ), $link ); } return $link; } public function divi_builder_post_types( $post_types ) { $index = array_search( $this->post_type, $post_types ); if ( $index ) { unset( $post_types[ $index ] ); } return $post_types; } } XLWCTY_remove_builder::get_instance();