Skip to content
Create a gist now

Instantly share code, notes, and snippets.

Customize P3's Auto Scan URLs
Plugin Name: Example plugin
Plugin URI:
Description: Customize the pages scanned by P3's auto scan mode
Author: edwardra3
Version: 1.0
Author URI:
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.