WPLib_Posts::_wp_loaded PHP Method

_wp_loaded() static public method

Add a property to post type objects so they can be self-identified.
static public _wp_loaded ( )
    static function _wp_loaded()
    {
        global $wp_post_types;
        foreach ($wp_post_types as $post_type => $post_type_object) {
            /**
             * Decided not to prefix this property, because really?
             */
            $post_type_object->is_post_type_object = true;
        }
    }