Retrieves the month permalink structure without day and with year.

Description Description

Gets the date permalink structure and strips out the day permalink structures. Keeps the year permalink structure.

Top ↑

Return Return

(string|false) Year/Month permalink structure on success, false on failure.

Top ↑

Source Source

File: wp-includes/class-wp-rewrite.php

	public function get_month_permastruct() {
		$structure = $this->get_date_permastruct();

		if ( empty( $structure ) ) {
			return false;

		$structure = str_replace( '%day%', '', $structure );
		$structure = preg_replace( '#/+#', '/', $structure );

		return $structure;

Top ↑

Changelog Changelog

Version Description
1.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

Top ↑

You must log in before being able to contribute a note or feedback.