forked from tommcfarlin/remove-public-pingbacks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
remove-public-pingbacks.php
46 lines (43 loc) · 1.41 KB
/
remove-public-pingbacks.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
<?php
/**
* Remove Public Pingbacks.
*
* This class will remove the count and listing of public-facing pingbacks from
* your WordPress blog; however, if your blog or website renders a heading element
* for the 'Trackbacks' and/or 'Pings' heading, then you can use the bundled
* CSS to hide them.
*
* @package Remove_Public_Pingbacks
* @author Tom McFarlin <[email protected]>
* @license GPL-2.0+
* @link http://tommcfarlin.com/remove-public-pingbacks/
* @copyright 2014 Tom McFarlin
*
* @wordpress-plugin
* Plugin Name: Remove Public Pingbacks
* Plugin URI: http://tommcfarlin.com/remove-public-pingbacks/
* Description: Removes the count and listing of pingbacks from the public-facing side of a WordPress siste.
* Version: 1.0.0
* Author: Tom McFarlin
* Author URI: http://tommcfarlin.com/
* Text Domain: remove-public-pingbacks
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Includes the core class repsonsible for removing public pingbacks.
*/
require_once( plugin_dir_path( __FILE__ ) . 'class-remove-public-pingbacks.php' );
/**
* Begins execution of the plugin.
*
* @since 1.0.0
*/
function tm_run_remove_public_pingbacks() {
Remove_Public_Pingbacks::run();
}
tm_run_remove_public_pingbacks();