Last active
May 17, 2022 18:56
-
-
Save hivepress/416a70aced578730b0335f9abdcafdc8 to your computer and use it in GitHub Desktop.
Add the listing submit link to the user account menu #hivepress #listings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( | |
'hivepress/v1/menus/user_account', | |
function( $menu ) { | |
$menu['items']['listing_submit']=[ | |
'label' => 'custom text here', | |
'route' => 'listing_submit_page', | |
'_order' => 123, | |
]; | |
return $menu; | |
}, | |
1000 | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment