-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwp-heart-throb.php
52 lines (46 loc) · 1.05 KB
/
wp-heart-throb.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<?php
/**
* Plugin Name: WP Heart Throb
* Plugin URI: http://wordpress.org/plugins/wp-heart-throb/
* Description: Shows a beating heart in your toolbar for each tick of the heartbeat API
* Author: John James Jacoby
* Author URI: https://jjj.blog
* Version: 1.0.1
* License: GPLv2 or later
*/
// Exit if accessed directly
defined( 'ABSPATH' ) || exit;
/**
* Includes
*
* @since 1.0.0
*/
function _wp_heart_throb() {
// Get the plugin path
$plugin_path = plugin_dir_path( __FILE__ ) . 'wp-heart-throb/';
// Common files
require_once $plugin_path . 'includes/assets.php';
require_once $plugin_path . 'includes/common.php';
require_once $plugin_path . 'includes/hooks.php';
}
add_action( 'plugins_loaded', '_wp_heart_throb' );
/**
* Return the plugin URL
*
* @since 1.0.0
*
* @return string
*/
function wp_heart_throb_get_plugin_url() {
return plugin_dir_url( __FILE__ ) . 'wp-heart-throb/';
}
/**
* Return the asset version
*
* @since 1.0.0
*
* @return int
*/
function wp_heart_throb_get_asset_version() {
return 201701030001;
}