latest stable versions: v130513 (changelog)

s2Member® Forums

The Customers Forum is only for paying customers.
~ We also have a free/open Community Forum.

Troubleshooting Tips

Customer support for products by s2Member® is available only through your account at s2Member.com, which grants you access to our Customers Forum. We also have public Community Forum available to all site owners (no purchase required). For further details, please read our Support Policy, which includes a list of things that we will support, and also some things that we will NOT support. Please read this before posting.

We ask that you submit all pre-sale and/or technical support questions through the appropriate support forum at s2Member.com. If you are a paid customer, an s2Member® support representative will gladly address your question/concern within 24-48 hours; excluding all major holidays. Thank you!

For troubleshooting assistance, please read this article.

Quick Cache: Needing a New Hook

Home Forums Community Forum Quick Cache: Needing a New Hook

This topic contains 5 replies, has 2 voices.
Last updated by  Eduan 11 months, 3 weeks ago.

Topic Author Topic
Posted: Wednesday May 30th, 2012 @ 10:34 am #14941
Eric Juden
s2Member® Pro (Paid Customer)
Paid Customer

I recently wrote a plugin to extend Quick Cache: Quick Cache Clear for Publishers. This plugin works great in WordPress Multisite, but not in regular WordPress. Would it be possible to add another hook here:

/wp-content/plugins/quick-cache/includes/classes/menu-pages.inc.php line 237

You have 2 parts to the if statement…1 for WordPress, and one for WordPress Multisite. Below is the code.

Original line 237:

if ((!is_multisite () && current_user_can ("edit_plugins")) || (is_multisite () && (is_super_admin () || apply_filters ("ws_plugin__qcache_ms_user_can_see_admin_header_controls", false))))

Suggested line 237:

if ((!is_multisite () && (current_user_can ("edit_plugins") || apply_filters ("ws_plugin__qcache_user_can_see_admin_header_controls", false))) || (is_multisite () && (is_super_admin () || apply_filters ("ws_plugin__qcache_ms_user_can_see_admin_header_controls", false))))

Thanks,

Eric

List Of Topic Replies

Viewing 5 replies - 1 through 5 (of 5 total)
Author Replies
Author Replies
Posted: Wednesday May 30th, 2012 @ 5:13 pm #14977
Eduan
s2Member® Moderator (Volunteer)
Moderator
HelpfulExperiencedAdvanced

Hello Eric,

I will forward this to the lead developer, so that he can see your suggestion. :)

Posted: Wednesday May 30th, 2012 @ 5:32 pm #14979
Eric Juden
s2Member® Pro (Paid Customer)
Paid Customer

Thanks Eduan!

Posted: Friday Jun 1st, 2012 @ 9:12 am #15159
Eduan
s2Member® Moderator (Volunteer)
Moderator
HelpfulExperiencedAdvanced

Hello Eric,

He answered, and he says he’ll keep it in mind for the next release for Quick Cache.

Hope this helps. :)

Posted: Friday Jun 1st, 2012 @ 2:19 pm #15192
Eric Juden
s2Member® Pro (Paid Customer)
Paid Customer

Thanks!

Posted: Saturday Jun 2nd, 2012 @ 10:20 am #15255
Eduan
s2Member® Moderator (Volunteer)
Moderator
HelpfulExperiencedAdvanced

You’re welcome Eric,

Glad I was able to help. :)

Viewing 5 replies - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

If you're a paying customer, please use our Customers Forum. We also have a public Community Forum available to all site owners (no purchase required). You can register here (it's free). For further details, please read through our Support Policy.