Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories
Register::enable_all()
Enables all Approved Download Directory rules in a single operation.
Method of the class: Register{}
No Hooks.
Return
true|false
.
Usage
$Register = new Register(); $Register->enable_all(): bool;
Register::enable_all() Register::enable all code WC 8.7.0
public function enable_all(): bool { global $wpdb; $table = $this->get_table(); // phpcs:ignore WordPress.DB.PreparedSQL.InterpolatedNotPrepared return (bool) $wpdb->query( "UPDATE {$table} SET enabled = 1" ); }