-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwp2tumblr.php
31 lines (25 loc) · 901 Bytes
/
wp2tumblr.php
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
<?php
/**
* @package wp2tumblr
* @version 1.0
*/
/*
Plugin Name: WP 2 Tumblr
Plugin URI: https://github.com/CarpeNoctem/wp2tumblr
Description: Another plugin to send WordPress posts to a Tumblr blog. Uses the Tumblr API (v2). Seems to be the most recent. (The two older ones I tried don't work.)
Author: CarpeNoctem
Version: 1.0
Author URI: https://github.com/CarpeNoctem
*/
// Special thanks to the authors of documentation and other WP plugins from which I
// learned and draw from a bit for ideas, best practices, and code snippets.
//Don't execute if called directly.
if ( !function_exists( 'add_action' ) ) {
die('Pay no attention to the man behind the curtain...');
}
define('WP2TUMBLR_VERSION', '1.0');
define('WP2TUMBLR_URL', plugin_dir_url( __FILE__ ));
define('WP2TUMBLR_PATH', dirname( __FILE__ ));
if ( is_admin() )
require_once WP2TUMBLR_PATH . '/includes/admin.php';
?>