Uma área de pesquisa sobre o WordPress para devs e autores do tema



remove_post_type_support ›

Desde3.0.0
Obsoleton/a
remove_post_type_support ( $post_type, $feature )
Parâmetros: (2)
  • (string) $post_type The post type for which to remove the feature.
    Required: Yes
  • (string) $feature The feature being removed.
    Required: Yes
Definido em:
Codex:

Remove support for a feature from a post type.



Fonte

function remove_post_type_support( $post_type, $feature ) {
	global $_wp_post_type_features;

	unset( $_wp_post_type_features[ $post_type ][ $feature ] );
}