Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
EDD_DB_Customer_Meta::sanitize_customer_id( int|stirng $customer_id )
Given a customer ID, make sure it’s a positive number, greater than zero before inserting or adding.
Description Description
Parameters Parameters
- $customer_id
-
(Required) A passed customer ID.
Return Return
(int|bool) The normalized customer ID or false if it's found to not be valid.
Source Source
File: includes/class-edd-db-customer-meta.php
Changelog Changelog
Version | Description |
---|---|
2.6 | Introduced. |