aioseo_good_bot_list

aioseo_good_bot_list

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: all-in-one-seo-pack.4.7.7

apply_filters('aioseo_good_bot_list') is found 1 times:

  • /app/Common/Tools/BadBotBlocker.php line 337
    			'Yahoo! Slurp' => 'crawl.yahoo.net',
    			'googlebot'    => '.googlebot.com',
    			'msnbot'       => 'search.msn.com',
    		];
    		$botList = apply_filters( 'aioseo_good_bot_list', $botList );
    		if ( ! empty( $botList ) ) {
    			if ( ! isset( $_SERVER['HTTP_USER_AGENT'] ) ) {
    				return false;
    			}
    			$ua  = ! empty( $_SERVER['HTTP_USER_AGENT'] ) ? sanitize_text_field( wp_unslash( $_SERVER['HTTP_USER_AGENT'] ) ) : '';
    			$uas = $this->prepareList( $botList );