Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
cjg89 opened this issue Aug 29, 2018 · 0 comments
Open

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

cjg89 opened this issue Aug 29, 2018 · 0 comments
Assignees
Milestone

Comments

@cjg89
Copy link
Member

cjg89 commented Aug 29, 2018

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

@cjg89 cjg89 added this to the backlog milestone Jul 17, 2019
@cjg89 cjg89 changed the title Make update_option() calls conditional Replace update_option() calls with option_${option_name} filter hooks Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants