LLMS_Post_Model::set_bulk( array $model_array, array $wp_error = false )
Bulk setter
Description Description
Parameters Parameters
- $model_array
-
(Required) Associative array of key/val pairs.
- $wp_error
-
(Optional) Whether or not return a WP_Error.
Default value: false
Return Return
(boolean|WP_Error) True on success. If the param $wp_error is set to false this will be false on error or if there was nothing to update. Otherwise this will be a WP_Error object collecting all the errors encountered along the way.
Source Source
File: includes/abstracts/abstract.llms.post.model.php
Changelog Changelog
Version | Description |
---|---|
3.36.1 | Use WP_Error::$errors in place of WP_Error::has_errors() to support WordPress version prior to 5.1. |
3.34.0 | Introduced. |