Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Customize P3's Auto Scan URLs

View p3-customizer.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 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.