secret
Created

Customize P3's Auto Scan URLs

  • Download Gist
p3-customizer.php
PHP
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
<?php
 
/*
Plugin Name: Example plugin
Plugin URI: http://example.com/
Description: Customize the pages scanned by P3's auto scan mode
Author: edwardra3
Version: 1.0
Author URI: http://example.com/
*/
 
function my_p3_auto_scan_pages( $urls ) {
foreach ( $urls as $k => $v ) {
if ( false !== strpos( $v, '/wp-admin' ) ) {
unset( $urls[ $k ] );
}
}
return $urls;
}
add_filter( 'p3_automatic_scan_urls', 'my_p3_auto_scan_pages', 10, 2 );

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.