Skip to content
Advertisement

How are submenu created in WordPress?

I am new to programming in php / WordPress and I have a problem with the add_submenu_page function, it doesn’t work.

This is the code I use.

JavaScript

Can anybody help me?

Advertisement

Answer

I have already solved. I was wrong in the order of the variables.

The function has to receive the parameters in this order:

JavaScript

And I did it like this:

JavaScript

The correct code is as follows:

JavaScript

Regards.

User contributions licensed under: CC BY-SA
3 People found this is helpful
Advertisement