• Resolved wpkarim

    (@wpkarim)


    is it possible to add a menu item with the current page and a extra parameter.
    i’m looking for something like this:
    [CURRENT_PAGE]&lang=fr

    when i’m on the page “/wp-admin/edit.php?post_type=product”
    i want “/wp-admin/edit.php?post_type=product&lang=fr” as menu item.

    Thanks,
    Karim

Viewing 1 replies (of 1 total)
  • Plugin Author Northern Beaches Websites

    (@northernbeacheswebsites)

    Hi @wpkarim,

    Not with built-in functionality, but coupled with custom javascript you could do this.

    I am not going to give you the full answer, but just the technique, as this free support for the free version of the plugin. I am happy to provide more exact guidance as part of the pro version and its included support.

    What you can do is for the menu link, put in any link like: my-link-1

    Then using the custom admin javascript function of the plugin you could enter code like this:

    $("a[href='my-link-1']").attr('href','https://google.com');

    And you would need to change the link to Google to the current page plus your parameter &lang=fr using javascript. I hope that points you in the right direction. Thanks,

Viewing 1 replies (of 1 total)
  • The topic ‘add current page + parameters in toolbar menu’ is closed to new replies.