-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathposts-on-this-day.php
More file actions
32 lines (28 loc) · 855 Bytes
/
Copy pathposts-on-this-day.php
File metadata and controls
32 lines (28 loc) · 855 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
/**
* Plugin Name: Posts On This Day
* Plugin URI: https://jeremy.hu/my-plugins/posts-on-this-day/
* Description: Widget to display a list of posts published "on this day" in years past. A good little bit of nostalgia for your blog.
* Author: Jeremy Herve
* Version: 1.5.7
* Author URI: https://jeremy.hu
* License: GPL2+
* Text Domain: posts-on-this-day
* Requires at least: 5.6
* Requires PHP: 8.3
*
* @package jeherve/posts-on-this-day
*/
declare( strict_types=1 );
namespace Jeherve\Posts_On_This_Day;
$posts_on_this_day_autoloader = plugin_dir_path( __FILE__ ) . 'vendor/autoload_packages.php';
if ( is_readable( $posts_on_this_day_autoloader ) ) {
require $posts_on_this_day_autoloader;
}
// Register widget.
add_action(
'widgets_init',
function () {
register_widget( __NAMESPACE__ . '\Posts_On_This_Day_Widget' );
}
);