AtomParser::is_declared_content_ns() WordPress Method

The AtomParser::is_declared_content_ns() WordPress method is used to check if an Atom content namespace has been declared.

AtomParser::is_declared_content_ns( $new_mapping ) #


Source

File: wp-includes/atomlib.php

    function is_declared_content_ns($new_mapping) {
        foreach($this->content_ns_contexts as $context) {
            foreach($context as $mapping) {
                if($new_mapping == $mapping) {
                    return true;
                }
            }
        }
        return false;
    }

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.