Skip to content

Instantly share code, notes, and snippets.

View YuvrajKhavad's full-sized avatar
👨‍💻
Simplifying Work at Z Index

Yuvraj Khavad YuvrajKhavad

👨‍💻
Simplifying Work at Z Index
View GitHub Profile
@YuvrajKhavad
YuvrajKhavad / gist:448fe24c56764ced103e17f0e9866182
Last active May 25, 2024 11:01 — forked from jaredatch/gist:7093295
Dynamically populate a submenu with posts
<?php
/**
* Adds the most recent "Some Category" posts as sub menu items under
* the "Some Category Parent" parent menu item.
*
* @param array $items
* @param array $menu
* @param array $args
* @return array
*/