• I was wondering if your code could be used as a model for how to “fix” the new addresses used by the the Appearance->Header and Appearance->Background menu items in WP 4.1.

    The new addresses invoke the Customizer, which stinks for choosing a header image and for the background color. The old addresses for these two menu items still work, if you type it into the address bar, and that gives you all the options as before. The new ones, however, limit what you can change and you have to work in the tiny sidebar so it can show a preview (that is unnecessary).

    I wrote a little code to manipulate the menu items, and was able to remove the new one, but nothing I tried worked to add or modify to the old one. The core code to handle those pages is in a class, which creates its own menu items and that is initiated from a function _custom_header_background_just_in_time in the old version. The 4.1 version creates the new menu items with all the other defaults during WP load.

    I get the impression that the 4.1 way is an intermediate step to using the Customizer for everything related to Appearance, but since the code for the old way is still there, it seems odd that you can’t use it (like putting Customizer options for those two when you click on Customize, but leaving the old links for standalone pages).

    https://ww.wp.xz.cn/plugins/hierarchy/

The topic ‘extending plugin to other menu items?’ is closed to new replies.