Skip to content

update the wp-admin bar edit links on router page change #4

@wjhdev

Description

@wjhdev

WordPress hardcodes a post id in the wordpress admin bar, which needs to update (or be overriden on click) when the router redirects

Wordpress DOM:

<li id="wp-admin-bar-edit">
        <a
          class="ab-item"
          href="http://192.168.19.60/wp-admin/post.php?post=13&#038;action=edit"
          >Edit Page</a
        >
</li>

A route to reload the DOM from WordPress server is likely necessary to handle hooks or other custom actions. Not worrying about 3rd party plugins for now.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions