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



remove_post_type_support › WordPress Function

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:

Removes 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 ] );
}