nstaeger / wp-post-email-notification Goto Github PK
View Code? Open in Web Editor NEWA WordPress plugin sending email notifications to subscribers when a new post is published
A WordPress plugin sending email notifications to subscribers when a new post is published
Accidentally an email was sent when new menu-items where created for a menu.
Hello,
I realise that this plugin is (probably) no longer supported, but can you update it, to allow deletion of the plugin, in later versions of Wordpress?
If I try to delete it through the Wordpress plugin page, I get an 'Deletion failed: There has been a critical error on your website' message and the following in the PHP log:
[23-May-2020 11:15:35 UTC] PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function Nstaeger\WpPostEmailNotification\Model\JobModel::__construct(), 1 passed in /home/user/public_html/travel/wp-content/plugins/wp-post-email-notification/uninstall.php on line 24 and exactly 2 expected in /home/user/public_html/travel/wp-content/plugins/wp-post-email-notification/src/Model/JobModel.php:23
Stack trace:
#0 /home/user/public_html/travel/wp-content/plugins/wp-post-email-notification/uninstall.php(24): Nstaeger\WpPostEmailNotification\Model\JobModel->__construct(Object(Nstaeger\CmsPluginFramework\Broker\Wordpress\WordpressDatabaseBroker))
#1 /home/user/public_html/travel/wp-admin/includes/plugin.php(1222): include('/home/user/...')
#2 /home/user/public_html/travel/wp-admin/includes/plugin.php(956): uninstall_plugin('wp-post-email-n...')
#3 /home/user/public_html/travel/wp-admin/includes/ajax-actions.php(4545): delete_plugins(Array)
#4 /home/user/public_html/travel/wp-includes/class-wp-hook.php(287): wp_ajax_de in /home/user/public_html/travel/wp-content/plugins/wp-post-email-notification/src/Model/JobModel.php on line 23
Thanks.
Is there a simple way to make the plugin work with a custom post type?
My site title contains an ampersand (it is a "private" site, so I will not link it here) and in the email subject which is templated with (in the admin): Nouveau post sur @@blog.name!
When rendered on my email, it reads as Nouveau post sur toto & tata!
Could e.g. be done by setting a value within the database (wp-options or jobs-table) before fetching the next batch of users and updating the job.
one of your vendor scripts is calling wp_localize_script wrong the last param should be an array here
plugins/wp-post-email-notification/vendor/nstaeger/cms-plugin-framework/src/Broker/Wordpress/WordpressAssetBroker.php: wp_localize_script($asset->getName(), 'ajaxurl', admin_url('admin-ajax.php'));
should be
./assets/plugins/wp-post-email-notification/vendor/nstaeger/cms-plugin-framework/src/Broker/Wordpress/WordpressAssetBroker.php: wp_localize_script($asset->getName(), 'ajaxurl', array ( admin_url('admin-ajax.php') ) );
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.