Un motore di ricerca WordPress per sviluppatori e autori di temi



remove_post_type_support ›

Da3.0.0
Deprecaton/a
remove_post_type_support ( $post_type, $feature )
Parametri: (2)
  • (string) $post_type The post type for which to remove the feature.
    Richiesto:
  • (string) $feature The feature being removed.
    Richiesto:
Definito a:
Codex:

Remove support for a feature from a post type.



Sorgenti

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

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