Automattic\WooCommerce\Internal\ProductDownloads\ApprovedDirectories
Register::delete_by_id()
Delete the approved directory identitied by the supplied ID.
Method of the class: Register{}
No Hooks.
Return
true|false
.
Usage
$Register = new Register(); $Register->delete_by_id( $id ): bool;
- $id(int) (required)
- The ID of the rule to be deleted.
Register::delete_by_id() Register::delete by id code WC 9.6.1
public function delete_by_id( int $id ): bool { global $wpdb; $table = $this->get_table(); return (bool) $wpdb->delete( $table, array( 'url_id' => $id ) ); }