wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



post_type_supports › WordPress Function

Od3.0.0
Przestarzałyn/a
post_type_supports ( $post_type, $feature )
Parametry: (2)
  • (string) $post_type The post type being checked.
    Wymagane: Tak
  • (string) $feature The feature being checked.
    Wymagane: Tak
Powrót:
  • (bool) Whether the post type supports the given feature.
Zdefiniowane na:
Codex:

Checks a post type's support for a given feature.



Źródło

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

	return ( isset( $_wp_post_type_features[ $post_type ][ $feature ] ) );
}