Theme Development: Starter Content after hook

admin2025-06-01  3

I'm making a Wordpress theme that generate placeholder menus using the theme support "starter content". I read the documentation and is very vague: /.

I want in my theme generate menus and them put images in each menu item using the plugin Menu Image. But I can't find a hook that executes after starter content generation and executes only once. The hooks I use the content is basically in customizer changeset and I can't access them using the normal Nav Menu API of WordPress.

What I can do in this case. Someone have some idea about it? Thanks!

I'm making a Wordpress theme that generate placeholder menus using the theme support "starter content". I read the documentation and is very vague: https://make.wordpress/core/2016/11/30/starter-content-for-themes-in-4-7/.

I want in my theme generate menus and them put images in each menu item using the plugin Menu Image. But I can't find a hook that executes after starter content generation and executes only once. The hooks I use the content is basically in customizer changeset and I can't access them using the normal Nav Menu API of WordPress.

What I can do in this case. Someone have some idea about it? Thanks!

Share Improve this question edited Jun 15, 2019 at 1:09 Lucas Vendramini asked Jun 15, 2019 at 1:03 Lucas VendraminiLucas Vendramini 3032 silver badges11 bronze badges 0
Add a comment  | 

1 Answer 1

Reset to default 0

I would start by making this part a plug-in for the theme. Then, look at all the code the source plugin provides. I am unfamiliar with this one but it looks to be ok. Find the actions and filters it introduces and use those to build your plugin. In fact I think on init you could do certainly add content.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1748781361a313747.html

最新回复(0)