I'm a passionated web developer from Germany 🇩🇪 who loves to build software and online services. 💻
Follow me on Twitter @flowdee 🐦
Oh Dear WordPress Plugin
Home Page: https://wordpress.org/plugins/ohdear/
I'm a passionated web developer from Germany 🇩🇪 who loves to build software and online services. 💻
Follow me on Twitter @flowdee 🐦
Would love to add support for OhDear's scheduled tasks and track WP cron execution, so you can monitor if it runs properly on your site.
When you set up a "Scheduled Task" in OhDear, they give you a "Ping URL" which needs to be called frequently.
Besides that, you can set up the frequency how often the URL should be called (Grace period is unimportant for our implementation).
So the idea is, that on our settings page, we add a new section "Scheduled Tasks (WP Cron)", as well as the following settings:
When Ping url or frequency are empty, our plugin does not do anything here at all.
Once input is available, our plugin sets a custom cron interval based on the settings given: https://developer.wordpress.org/plugins/cron/understanding-wp-cron-scheduling/
For the event function, we just call the entered ohdear ping url.
Here's a example I currently used for our sites:
/*
* Setup cron interval
*/
add_filter( 'cron_schedules', function ( $schedules ) {
$schedules['fdmedia_cron_check'] = array(
'interval' => 300,
'display' => __( 'Every 5 Minutes' )
);
return $schedules;
} );
/*
* Schedule cron event
*/
if ( ! wp_next_scheduled( 'fdmedia_site_cron_check' ) ) {
wp_schedule_event( time(), 'fdmedia_cron_check', 'fdmedia_site_cron_check' );
}
/*
* Cron check function
*/
add_action('fdmedia_site_cron_check', function() {
// Call OhDear API
$response = wp_remote_get( 'https://ping.ohdear.app/d0a8ea91-dd58-400b-8a3a-1835a6126f4e' );
// Do nothing.
});
After the release we should optimize the views as follows:
All classes/ids should be prefixed with ohdear-
. Otherwise, we risk overwriting global classes in the admin area, which we don't want on purpose.
Afterward, the CSS file must be updated as well.
Hi! Thanks for providing this handy plugin. Just started installing it.
I have a feature request. I'm running multiple Wordpress sites, based on 1 single install, using the multisite feature of wordpress.
I noticed I had to configure each website separately, which makes sense when separate websites are managed by separate people, who might have or not separate Oh Dear accounts.
It might perhaps make sense, to centralize configuration, for multisite setups, in a "Network Admin" admin page of said install?
Also, Multisite wordpress, also allows to define a domain alias for the site, so one can have "www.mylittleshop.com" instead of "littleshop.mymultisitewp.net". You might want to look at that and try to automap sites in WP with urls in Oh Dear.
Thank you for considering this. If you need testing, I'll gladly help.
We must apply the redesign to the plugin by switching the logo/icon and also to the WP org header + logo graphics
Could you please prepare & release version 1.0.2?
Install Airbrake using Composer by running the following command from your project's directory:
composer require airbrake/phpbrake
Copy the following configuration snippet into your PHP app. It shows how to initialize Airbrake and register the instance as an error handler:
$notifier = new Airbrake\Notifier(array(
'projectId' => 283568,
'projectKey' => 'fc19f3848f145ddf8d713512df2a1085'
));
Airbrake\Instance::set($notifier);
$handler = new Airbrake\ErrorHandler($notifier);
$handler->register();
To send a test error, you can call Airbrake directly like in this try/catch example:
try {
throw new Exception('hello from phpbrake');
} catch(Exception $e) {
Airbrake\Instance::notify($e);
}
Check out our official GitHub repo for info on additional features like:
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.