-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue 11 - Multisite compatibility #15
base: master
Are you sure you want to change the base?
Conversation
Related to ActiveCampaign#12
Related to ActiveCampaign#12
Related to ActiveCampaign#12
This should be done inside the function in case someone to call the method directly. The check is also already done for add_options_page. Related to ActiveCampaign#12
@guillaumemolter the conflict here seems easily resolved. Is there anything else preventing merge? Does it require more testing? |
Hey folks, We do want to add multi-site to the plugin, and I do appreciate the pull request. The issue is that I need to dedicate time to reviewing the diff, and making sure I understand how multi-site works so that we can properly support it when we get support cases on it. It's not excusable that I haven't responded to this PR in a more timely manner, but I'll spend some time within the next week to review this and provide feedback or get it merged. |
@atheken, Thanks for your prompt response. I'd be glad to assist with further testing on single and multi-site installs if that's useful. |
Thanks Ben. Based on how things are going, I will probably get to this on
Wednesday. I will ping you if I have questions.
//Andrew
…On Sun, Jan 22, 2017 at 9:23 AM, Ben ***@***.***> wrote:
@atheken <https://github.com/atheken>, Thanks for your prompt response.
I'd be glad to assist with further testing on single and multi-site
installs if that's useful.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#15 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AACKAWbDfNwFJPz5z6k8Y78eb3mDnF44ks5rU2ZsgaJpZM4JeYqq>
.
|
@guillaumemolter / @BZum1 Hey folks, so I started to look in to merging this, and I configured a network using these instructions: https://codex.wordpress.org/Multisite_Network_Administration Is there an example of where I should see the postmark plugin settings UI, or am I missing something? (Testing with |
@atheken In a multisite environment the Postmark settings should appear on the main "Network Admin" dashboard under Settings (http://siteurl.com/wp-admin/network), and not on the individual site's Settings menu. Is it not showing there? |
Hi Andrew, Not sure how much you know about WP Multisite so forgive me if I'm stating the obvious. When you upload a plugin on a multisite network you have two options: either to network activate the plugin (meaning the plugin will be activated on all website of the network whether or not you want it) or you can activate the plugin on individual websites (which works exactly like on a single site installation of WordPress). Traditionally (single site installation) setting pages (called option pages in the WP lingo) are located under the Settings section of the WordPress admin ( /wp-admin/options.php?yourpluginparams). On network activated plugins the page is moved to the network admin ( /wp-admin/network/settings.php?page=yourplugin ) in a dedicated page. Some plugins do both, they have a global settings page in the network admin and a local admin page in each website for more site specific settings or to allow to override locally. I think In your case you should focus on the first option. WordPress Multisite, since it's not as popular as single site, has always been behind in terms of features and while I know it's on their roadmap currently doesn't support the Settings API that is tradionnaly used to create option page for plugins, in other words you will need to write some specific code for the network option page. Here is an example: https://vedovini.net/2015/10/using-the-wordpress-settings-api-with-network-admin-pages/ A more visual example: |
I should also add 2 more details:
|
@atheken In my testing, it appears that this PR removes the Postmark option screen from each individual site's Settings menu, but also, as @guillaumemolter noted, does not add it to the network admin Settings menu. Changing the new network_admin_menu function to the following actually adds the option page to the network admin Settings area:
Apparently the use of the "add_options_page" wrapper function doesn't work here. In testing, values added using this page are then saved at the network level. Alternately, if we want to keep the Postmark options page at the level of each individual site, it seems like we'd want to continue to use the admin_menu() function instead of the network_admin_menu() function. |
Thanks folks. I appreciate the great detail on this. I'll need a little time to digest and post some thoughts.
I'm fitting this in between other responsibilities, but will keep chipping away at it.
//Andrew
… On Jan 25, 2017, at 8:52 PM, Ben ***@***.***> wrote:
@atheken In my testing, it appears that this PR removes the Postmark option screen from each individual site's Settings menu, but also, as @guillaumemolter noted, does not add it to the network admin Settings menu.
Changing the new network_admin_menu function to the following actually adds the option page to the network admin Settings area:
function network_admin_menu() {
add_submenu_page( 'settings.php', 'Postmark', 'Postmark', 'manage_network_options', 'pm_admin', array( $this, 'settings_html' ) );
}
Apparently the use of the "add_options_page" wrapper function doesn't work here. In testing, values added using this page are then saved at the network level.
Alternately, if we want to keep the Postmark options page at the level of each individual site, it seems like we'd want to continue to use the admin_menu() function instead of the network_admin_menu() function.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Just an update here. I will probably have a chance to make more progress on this next Wednesday. I'm not really sure of what customers would prefer here:
Hypothetically, it seems like the preference would be to be able to set per-site settings for "From" address, and (maybe), Server-Token. I'm thinking of a media firm that might be managing dozens of uniquely branded sites for different customers. That seems like the more common "server-per-site" configuration. What I'm also not sure of, is whether this would be something that a Network Admin would delegate to site admins, or whether they would manage this in the Network Admin area? Perhaps what we need is a "master" UI in NetworkAdmin that allows blanket application of the Server settings, with the option of delegating who can see/use the server-level settings page for the plugin. Just "spit-balling" here, I definitely want to make this awesome, but I'm not a Wordpress guru. |
@atheken super ideally in my "dream" postmark plugin:
This makes things slightly more complex but would provide your customers with maximum flexibility and is kind of the standard UX for "network enabled" plugins. |
Any chance this will be picked up again at some point? |
Any appetite to continue work on this? It'd be very handy... |
Hey @trijammer - There are no current plans to work on this at the moment but that is due to lack of bandwidth rather than a decision being made that we don't want to add multisite support. |
Closing Make the plugin compatible with multisite networks #11