Filters how random codes are generated for invoices, discount codes, etc. Passes the code and order object.


apply_filters("pmpro_random_code", string $code, MemberOrder $this);

Parameters

$code
string
$this
MemberOrder

Source

File: https://github.com/strangerstudios/paid-memberships-pro/blob/master/classes/class.memberorder.php

View in Source Code

Related Articles and Recipes

How to Use Sequential Order Numbers for Member Invoices By Travis Lima