Internal method to update an existing form in the database.
Description
See also
Parameters
- $form_category_id
-
(int) (Required) ID of the form to update.
- $args
-
(array) (Required) Array of column => value pairs to update in the database row.
Return
(bool) True on success, or false on failure.
Source
File: src/db-objects/form-categories/form-category-manager.php
protected function update_in_db( $form_category_id, $args ) { $args = $this->map_args( $args ); $taxonomy = $args['taxonomy']; unset( $args['taxonomy'] ); $result = wp_update_term( $form_category_id, $taxonomy, $args ); if ( is_wp_error( $result ) ) { return false; } return true; }
Changelog
Version | Description |
---|---|
1.0.0 | Introduced. |