WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Updating permalinks in plugin activation function (2 posts)

  1. willkemp
    Member
    Posted 5 years ago #

    Hi,

    I've searched through documentation and forum posts for this, but i can't find the answer anywhere.

    I want a plugin activation function to update permalinks when the plugin is activated (i.e., equivalent to clicking the "Save Changes" button on the "Permalink Settings" page). Can someone tell me what function you use to do this?

    Thanks.

  2. willkemp
    Member
    Posted 5 years ago #

    Ok, i've worked it out. it's wp_rewrite->flush_rules - as explained in
    this thread

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.