INVP::prepare_phone_number_for_link( string $number )

Takes a phone number and prepares it for the href attribute of a link.

Description Description

Removes all non-alphanumeric characters, converts letters to dial pad digits, and prepends a country dialing code if the number is 10 digits or less.


Top ↑

Parameters Parameters

$number

(string) (Required) The phone number to prepare.


Top ↑

Return Return

(string) A version of the phone number provided with letters converted to dial pad digits, non-numeric characters removed, and a country code prepended if the length of the provided number was 10 or less.


Top ↑

Source Source

File: includes/class-invp.php

		}

		$pagination_html .= '<p>' . apply_filters(
			'invp_pagination_sentence',
			sprintf(
				'%s %d %s %d %s %d %s',
				__( 'Showing', 'inventory-presser' ),
				$start_index,
				__( 'to', 'inventory-presser' ),
				$end_index,
				__( 'of', 'inventory-presser' ),
				$wp_query->found_posts,
				$object_name
			)
		)
		. '</p>';

		return '<nav class="invp-pagination pagination group">'
		. apply_filters( 'invp_pagination_html', $pagination_html )
		. '</nav>';
	}

	/**
	 * Takes a phone number and prepares it for the href attribute of a link.