23,143 reputation
41846
bio website xlino.com
location Reykjavik, Iceland
age
visits member for 2 years, 6 months
seen 16 hours ago

Developer from Iceland

Just another Earthling cruising the Milky Way galaxy

----- ]=|>


2d
comment Convert output of nav_menu items into a tree-like multidimensional array
In option A, $sorted_menu_items is still a "flat" array and the output of option B is a string.
2d
comment Convert output of nav_menu items into a tree-like multidimensional array
it will not display it automatically, you get the structure in a variable, so you can choose what to do with it @YemSalat
2d
comment Convert output of nav_menu items into a tree-like multidimensional array
I agree, I like more the simplicity of the buildTree method ;-) @YemSalat
2d
revised Convert output of nav_menu items into a tree-like multidimensional array
added 3 characters in body
2d
comment Convert output of nav_menu items into a tree-like multidimensional array
I updated the answer with another kind of approach @YemSalat
2d
revised Convert output of nav_menu items into a tree-like multidimensional array
added 1085 characters in body
2d
comment Contact Form 7 - Execute code AFTER mail send
Maybe you could apply this kind of approach ?
Jul
30
awarded  Revival
Jul
29
comment How to disable profile.php for users?
Maybe that is better served as a new question? @azizul
Jul
29
comment Convert output of nav_menu items into a tree-like multidimensional array
thanks, it's always interesting & fun to see different approaches to problem solving - your's looks pretty cool +1. @ialocin
Jul
29
revised Convert output of nav_menu items into a tree-like multidimensional array
deleted 102 characters in body
Jul
29
revised Convert output of nav_menu items into a tree-like multidimensional array
deleted 46 characters in body
Jul
29
answered Convert output of nav_menu items into a tree-like multidimensional array
Jul
29
reviewed No Action Needed Email is not sent while adding add_filter in wpDiscuz - WordPress Comments plugin
Jul
29
comment Display the video of a post_format Video
How do you add the video into the editor: oEmbed urls, shortcodes or ...?
Jul
27
comment How do I set the default admin sort order for a custom post type to a custom column?
Glad to hear it helped with the problem, just noticed the question here on WPSE. @PieterGoosen thanks for your suggestions, "to mind or not to mind" that's the epic question 😃
Jul
26
reviewed Approve Fetch first image URL from post and set as featured image URL
Jul
26
comment How to disable profile.php for users?
The current_user_can() check should be inside the no_proflie_admin_pages_redirect callback, to avoid the undefined error.
Jul
26
comment How to disable profile.php for users?
ps: we must be careful using if without curly braces. It works for a single expression but you got two. Currently the exit() is outside the if part and will always run. So we better use the if(){ } syntax when dealing with two or more expressions ;-)
Jul
25
reviewed Close Bigcommerce - Custom Fields