Support » Networking WordPress » Constraint permalink structure in multisite

  • Resolved micheltam

    (@micheltam)


    Hi
    In a multisite how can I constrain the use of a single permalink structure (% post_id% yes the ugly one :D). Adminimize does not do the job because it only hides the menu and function of the write_options, but an admin blog can still access to options-permalink.php if he knows the url
    Thanks 😉

    • This topic was modified 9 months, 4 weeks ago by micheltam.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    Try using the filter “pre_update_option_{$option}” ( where $option = ‘permalink_structure’) to take what ever value one attempted to set, and change it to the value that’s already in place. You can build in an exception for a specific user so at least somebody can make changes.

    Many thanks, we’ll gonna try this way.

    In doubt, i still change the status to “resolved” 😉

    update_option(‘permalink_structure’,’/%post_id%’);
    do the job 😉
    Users can access if they know the url but can’t save.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Constraint permalink structure in multisite’ is closed to new replies.