Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



remove_post_type_support ›

Seit3.0.0
Veraltetn/v
remove_post_type_support ( $post_type, $feature )
Parameter: (2)
  • (string) $post_type The post type for which to remove the feature.
    Erforderlich: Ja
  • (string) $feature The feature being removed.
    Erforderlich: Ja
Definiert in:
Codex:

Remove support for a feature from a post type.



Quellcode

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

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