Skip to content

Replace update_option() calls with option_${option_name} filter hooks #159

@cjg89

Description

@cjg89

Update all explicit update_option() calls to check the existing option value before forcing an update to prevent excessive db calls. (We do this in a few places to force some default plugin options for this theme.)

See UCF/UCF-WordPress-Theme@4b24998

Examples:
https://github.com/UCF/Main-Site-Theme/blob/master/includes/ucf-alert-functions.php#L83-L85

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions