fabacab / multisite-directory

:card_index::globe_with_meridians: Add a browseable, flexible directory of the sites in a WP Multisite network.
https://wordpress.org/plugins/multisite-directory/
GNU General Public License v2.0
1 stars 6 forks source link

Have an option to redirect directory entries to sites themselves #21

Open hvianna opened 7 years ago

hvianna commented 7 years ago

As discussed in https://github.com/fabacab/multisite-directory/pull/19#discussion_r92444139

The best way to do this is to store a post_meta value in the entry itself that is then checked on this line to see if a redirect should or should not happen, and an option in the main blog's options table to check whether this should be active by default or not. (It should default to the same behavior before this patch, meaning it should be off by default.) That way Network Admins can turn on or off the redirect for each individual site in their Directory and can configure the default for new sites.