WordPress at a glance
function is not described

is_add_payment_method_page() WC 1.0

Is_add_payment_method_page - Returns true when viewing the add payment method page.

No Hooks.

Return

true|false. Nothing.

Usage

is_add_payment_method_page();

Code of is_add_payment_method_page() WC 5.2.2

<?php
function is_add_payment_method_page() {
	global $wp;

	$page_id = wc_get_page_id( 'myaccount' );

	return ( $page_id && is_page( $page_id ) && ( isset( $wp->query_vars['payment-methods'] ) || isset( $wp->query_vars['add-payment-method'] ) ) );
}