WC_Product::set_post_password() – Set post password.

You appear to be a bot. Output may be restricted

Description

Set post password.

Usage

WC_Product::set_post_password( $post_password );

Parameters

$post_password
( int ) required – Post password.

Returns

void

Source

File name: woocommerce/includes/abstracts/abstract-wc-product.php
Lines:

1 to 3 of 3
  public function set_post_password( $post_password ) {
    $this->set_prop( 'post_password', $post_password );
  }
 

 View on GitHub View on Trac