WordPress: WP_Rewriteの中身

WP_Rewrite Object
(
    [permalink_structure] => /%category%/%post_id%/%postname%/
    [use_trailing_slashes] => 1
    [author_base] => author
    [search_base] => search
    [comments_base] => comments
    [pagination_base] => page
    [feed_base] => feed
    [comments_feed_structure] => 
    [front] => /
    [root] => 
    [index] => index.php
    [matches] => 
    [rules] => Array()
    [extra_rules] => Array()
    [extra_rules_top] => Array()
    [non_wp_rules] => Array()
    [extra_permastructs] => Array
        (
            [category] => Array
                (
                    [0] => /category/%category%
                    [1] => 0
                )

            [post_tag] => Array
                (
                    [0] => /tag/%post_tag%
                    [1] => 0
                )

            [post_format] => Array
                (
                    [0] => /type/%post_format%
                    [1] => 0
                )

            [media_tag] => Array
                (
                    [0] => /media-tag/%media_tag%
                    [1] => 0
                )

        )

    [endpoints] => Array
        (
        )

    [use_verbose_rules] => 
    [use_verbose_page_rules] => 1
    [rewritecode] => Array
        (
            [0] => %year%
            [1] => %monthnum%
            [2] => %day%
            [3] => %hour%
            [4] => %minute%
            [5] => %second%
            [6] => %postname%
            [7] => %post_id%
            [8] => %author%
            [9] => %pagename%
            [10] => %search%
            [11] => %category%
            [12] => %post_tag%
            [13] => %post_format%
            [14] => %media_tag%
        )

    [rewritereplace] => Array
        (
            [0] => ([0-9]{4})
            [1] => ([0-9]{1,2})
            [2] => ([0-9]{1,2})
            [3] => ([0-9]{1,2})
            [4] => ([0-9]{1,2})
            [5] => ([0-9]{1,2})
            [6] => ([^/]+)
            [7] => ([0-9]+)
            [8] => ([^/]+)
            [9] => ([^/]+?)
            [10] => (.+)
            [11] => (.+?)
            [12] => ([^/]+)
            [13] => ([^/]+)
            [14] => ([^/]+)
        )

    [queryreplace] => Array
        (
            [0] => year=
            [1] => monthnum=
            [2] => day=
            [3] => hour=
            [4] => minute=
            [5] => second=
            [6] => name=
            [7] => p=
            [8] => author_name=
            [9] => pagename=
            [10] => s=
            [11] => category_name=
            [12] => tag=
            [13] => post_format=
            [14] => media-tag=
        )

    [feeds] => Array
        (
            [0] => feed
            [1] => rdf
            [2] => rss
            [3] => rss2
            [4] => atom
        )

)

Leave a Reply