-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrssgrab.php
More file actions
executable file
·35 lines (30 loc) · 1.03 KB
/
rssgrab.php
File metadata and controls
executable file
·35 lines (30 loc) · 1.03 KB
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
33
34
35
<?php
/*
Plugin Name: RSSGrab
Plugin URI: http://madgizmo.com/
Description: Grab a RSS feed and update content to a hook called rssgrab_init.
Version: 1
Author: Robert Kowalski
Author URI: http://rgk.madgizmo.com/
License: GPLv3
*/
if ( !function_exists( 'add_action' ) ) {
echo 'Don\'t access this plugin directly.';
exit;
}
function activate_rssgrab() {
include_once plugin_dir_path( __FILE__ ) . 'includes/class-rssgrab-activator.php';
RSSGrab_Activator::activate();
}
function deactivate_rssgrab() {
include_once plugin_dir_path( __FILE__ ) . 'includes/class-rssgrab-deactivator.php';
RSSGrab_Deactivator::deactivate();
}
register_activation_hook( __FILE__, 'activate_rssgrab' );
register_deactivation_hook( __FILE__, 'deactivate_rssgrab' );
include plugin_dir_path( __FILE__ ) . 'includes/class-rssgrab.php';
function run_rssgrab() {
$plugin = new RSSGrab();
$plugin->run();
}
run_rssgrab();