wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



remove_post_type_support › WordPress Function

Depuis3.0.0
Dépréciéen/a
remove_post_type_support ( $post_type, $feature )
Paramètres: (2)
  • (string) $post_type The post type for which to remove the feature.
    Requis: Oui
  • (string) $feature The feature being removed.
    Requis: Oui
Défini(e) dans:
Codex:

Removes support for a feature from a post type.



Source

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

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