PluginProbe ʕ •ᴥ•ʔ
SiteGuard WP Plugin / 1.0.4
SiteGuard WP Plugin v1.0.4
1.8.6 1.8.6-beta1 1.8.6-beta2 1.8.4 1.8.5 1.8.3 1.8.2 1.8.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.1.0 1.1.1 1.1.2 1.2.0 1.2.1 1.2.2 1.2.3 1.4.3 1.5.0 1.5.1 1.5.2 1.6.0 1.6.1 1.7.0 1.7.1 1.7.10 1.7.11 1.7.12 1.7.2 1.7.3 1.7.4 1.7.5 1.7.6 1.7.7 1.7.8 1.7.9 1.8.0 1.8.0-beta1 1.8.0-beta2 1.8.0-beta3 1.8.0-beta4
siteguard / classes / siteguard-disable-pingback.php
siteguard / classes Last commit date
siteguard-admin-filter.php 11 years ago siteguard-base.php 11 years ago siteguard-captcha.php 11 years ago siteguard-config.php 11 years ago siteguard-disable-pingback.php 11 years ago siteguard-htaccess.php 11 years ago siteguard-login-history.php 11 years ago siteguard-login-lock.php 11 years ago siteguard-rename-login.php 11 years ago siteguard-waf-exclude-rule.php 11 years ago
siteguard-disable-pingback.php
24 lines
1 <?php
2
3 class SiteGuard_Disable_Pingback extends SiteGuard_Base {
4
5 function __construct( ) {
6 global $config;
7 if ( '1' == $config->get( 'disable_pingback_enable' ) ) {
8 add_filter( 'xmlrpc_methods', array( $this, 'handler_xmlrpc_methods' ) );
9 }
10 }
11 function init( ) {
12 global $config;
13 $config->set( 'disable_pingback_enable', '1' );
14 $config->update( );
15 }
16 function handler_xmlrpc_methods( $methods ) {
17 unset( $methods['pingback.ping'] );
18 unset( $methods['pingback.extensions.getPingbacks'] );
19 return $methods;
20 }
21 }
22
23 ?>
24