WC_Product::set_post_password()
Set post password.
Method of the class: WC_Product{}
No Hooks.
Return
null
. Nothing (null).
Usage
$WC_Product = new WC_Product(); $WC_Product->set_post_password( $post_password );
- $post_password(int) (required)
- Post password.
Changelog
Since 3.6.0 | Introduced. |
WC_Product::set_post_password() WC Product::set post password code WC 9.7.1
public function set_post_password( $post_password ) { $this->set_prop( 'post_password', $post_password ); }