Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




post_type_exists [ WordPress Function ]

post_type_exists ( $post_type )
Parameters:
  • (string) $post_type Post type name
Uses:
Returns:
  • (bool) Whether post type is registered.
Defined at:



Checks if a post type is registered.

Source


<?php
function post_type_exists$post_type ) {
    return (bool) 
get_post_type_object$post_type );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics