WordPress Menu Item Meta Fields

All too beautiful WordPress menu admin interface

I wanted it for some time now, to be able to add a meta fields to menu items in the WordPress all-too-beautiful menu editing interface.

Haven’t had much luck finding a solution on the Interwebz. So I made my own. And then I found something quite similar to what I’ve done:
http://wordpress.stackexchange.com/questions/33342/how-to-add-a-custom-field-in-the-advanced-menu-properties

Main difference: my plugin uses phpQuery to “inject” additional html, and will therefore be hopefuly much more “updateable” in the future.

Here is a “skeleton” plugin that just adds a field to menu item and stores it as a meta value.

The plugins doesn’t do anything with it. For that, see some of the many tutorials online regarding the “menu walkers”.

This is intended for developers who need to be able to write a piece of information to the menu item and do something with it later on.

Tocka Menu Items plugin in actinon

Bitbucket repo: https://bitbucket.org/frnhr/tocka-menu-items/downloads#download-139513

 

TODO

  • explain plugin a bit

One thought on “WordPress Menu Item Meta Fields

  1. I like the helpful info you provide in your articles. I’ll bookmark your blog and check again here regularly. I’m quite sure I will learn lots of new stuff right here! Good luck for the next!

Comments are closed.