Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Customize P3's Auto Scan URLs
<?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.