Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories
StoredUrl::__construct
Sets up the approved directory rule.
Method of the class: StoredUrl{}
No Hooks.
Returns
null. Nothing (null).
Usage
$StoredUrl = new StoredUrl(); $StoredUrl->__construct( $id, $url, $enabled );
- $id(int) (required)
- The approved directory ID.
- $url(string) (required)
- The approved directory URL.
- $enabled(true|false) (required)
- Indicates if the approved directory rule is enabled.
StoredUrl::__construct() StoredUrl:: construct code WC 10.7.0
public function __construct( int $id, string $url, bool $enabled ) {
$this->id = $id;
$this->url = $url;
$this->enabled = $enabled;
}