get( 'Version' ) ); } add_action( 'wp_enqueue_scripts', 'twentytwentyone_wpcom_scripts' ); function twentytwentyone_wpcom_better_footer_credit_regex() { return implode( '', array( '#' , // Open delimiter 'Proudly powered by ]*href="http(s?)://(([a-z]{2}(-[A-Z]{2})?|www)\.)?(wordpress|wordpress-fr|wpfr)\.(com|org|net)/?"([^>]+)?>' , // Opening link tag '\s*' , // Optional whitespace '(.+?)' , // Any word or sentence '\s*' , // Optional whitespace '' , // Closing link tag '\.?' , // Optional period '(\s*&[^;]+;\s*)?' , // Optional HTML Entity '#i' , // Ending delimiter & modifier ) ); } add_filter( 'wpcom_better_footer_credit_regex', 'twentytwentyone_wpcom_better_footer_credit_regex' );