robertjj
Forum Replies Created
-
Forum: Plugins
In reply to: [WordPress Access Control] Subscribe2 WordPress Access Control Extension@ Merlin Silk
Within your WordPress folder create a new folder under /wp-content/plugins called “subscribe2-wordpress-access-control-extension”. Save the code into this folder as a file called “subscribe2-wordpress-access-control-extension.php”.
In WordPress admin menus, go to plugins and you should see this plugin in the list. You can then activate it.
Link to Subscribe2 WordPress Access Control Extension plugin is https://pastebin.com/2asC28cZ
To ‘b’ or not to ‘b’, that is the question.
I see that all 5 hooks have the incorrect spelling. Note that my registered-subscribers hooks were working because I based my code on the example in https://subscribe2.wordpress.com/support/api/ which has the incorrect (but working) spelling in the hook names and example code below it. Only the public subscribers hook name has the correct (and therefore not working) spelling in this document.
If you correct the spelling, existing code out there will not run unless you check for both spellings in each hook.
For each hook, I have created a pair of add_filter calls: one for each spelling, so it will work no matter which way you go. Everything is working fine for me now.
I will leave it to you to decide if you want to let it ‘b’ or let it be.
Thanks and regards.
I have opened up a support thread on the WordPress all-in-one-events-calendar plugin and have linked to this thread. Will wait and see…
Update: I have opened up a support thread with the Subscribe2 plugin. The author has looked at the problem, but no solution yet. (www.ads-software.com/support/topic/all-in-one-events-calendar-calendar-feeds-create-notifications#post-4926780).
In the plugin, you can set up calendar feeds that will automatically import events from other calendars into WordPress on a time schedule (see plugin documentation on calendar feeds)
We are using an .ics Feed URL that contains public holidays (URL is https://www.mozilla.org/projects/calendar/caldata/ThaiHolidays.ics ).
When you set up the feed, you can specify the feed URL and the event category that these events will be assigned to when they come in from the feed (e.g. “Public Holidays”). Unfortunately whenever the feed is updated, all the events that are imported from the feed generate email notifications for all registered subscribers (one notifcation for each event). This happens even though the category “Public Holidays” has been excluded from notifications in the Subscribe2 settings. Also, everytime the feed is updated, the events are recreated (generating new notifications) even though the events already exist from a previous update.
Please also note that no users are subscribed to “Public Holidays”.
The excluded category “Public Holidays” shows correctly with checkbox marked in Settings – Registered Users – Exluded Categories. I have standard post categories excluded also, but when I change these to only have my “Public Holidays” category exluded, the problem still persists.
If I manually create a single event as a “Public Holiday”, this (correctly) doesn’t generate any notifications. It only occurs when the calendar feed updates.
I don’t have any categories checked in the compulsory section.
Forum: Plugins
In reply to: [WordPress Access Control] access control over widgetsTry using the plugin dynamic widgets.
Forum: Plugins
In reply to: [Subscribe2 - Form, Email Subscribers & Newsletters] User Access ControlThanks for the quick response. I will try it out. Cheers.