Used By
Used By | Description |
---|---|
wp-includes/general-template.php: get_calendar() | Display calendar with days that have posts as links. |
Get number of days since the start of the week.
(int) (Required) Number of day.
(float) Days since the start of the week.
File: wp-includes/general-template.php
function calendar_week_mod( $num ) { $base = 7; return ( $num - $base * floor( $num / $base ) ); }
Version | Description |
---|---|
1.5.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/calendar_week_mod