• Resolved Flavio Henrique

    (@flavimhoa)


    Hello everyone, everything good? Would it be possible for me to define a callback to open no menu?

    I want to put a report inside one of the Redux framework menus, would that be possible?

Viewing 1 replies (of 1 total)
  • Plugin Author Kev Provance

    (@kprovance)

    I’m not sure exactly what you mean. If you are talking about a menu directly in the admin panel, you’d be better off just using the WordPress API add_menu_page to create a menu item and use its callback. If you’re talking about a submenu item, it would still be easier to use the WordPress API add_submenu_pageand its callback. If it’s a submenu already created by Redux, the only solution I can think of, untested, is to use custom JavaScript to capture the click event on that specific menu item, halt it with preventDefault and use AJAX to run whatever PHP you needed.

    It’s advanced stuff that’d require some JavaScript and PHP know-how.

    Good luck.

Viewing 1 replies (of 1 total)
  • The topic ‘Callback content’ is closed to new replies.