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


Top ↑

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.


Top ↑

Source Source

File: includes/abstracts/abstract.llms.post.model.php


			

Top ↑

Changelog 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.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.