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.


Top ↑

Return Return

(int|bool) The normalized customer ID or false if it's found to not be valid.


Top ↑

Source Source

File: includes/class-edd-db-customer-meta.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.6 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.