woocommerce_min_password_strength
The WordPress Core woocommerce min password strength hook.
Description
Parameters (1)
- 0. $int (int) =>
3
- The int.
Usage
- To run the hook, copy the example below.
- $int = apply_filters( 'woocommerce_min_password_strength', $int );
- if ( !empty( $int ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the woocommerce_min_password_strength callback
- function filter_woocommerce_min_password_strength( $int ) {
- // make filter magic happen here...
- return $int;
- };
- // add the filter
- add_filter( 'woocommerce_min_password_strength', 'filter_woocommerce_min_password_strength', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'woocommerce_min_password_strength', 'filter_woocommerce_min_password_strength', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /includes/class-wc-frontend-scripts.php
- 'min_password_strength' => apply_filters( 'woocommerce_min_password_strength', 3 ),