Skip to content

Commit

Permalink
Replaced update_option calls with option_ filter hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
cjg89 committed Feb 16, 2021
1 parent c9ee509 commit 4b24998
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions includes/ucf-alert-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
/**
* Set required settings changes for UCF-Alert-Plugin
**/
update_option( 'ucf_alert_include_css', false ); // Athena Theme rolls its own alert layout/styles
update_option( 'ucf_alert_include_js', true ); // Athena Theme uses vanilla UCF-Alert-Plugin js
update_option( 'ucf_alert_include_js_deps', false ); // Athena Theme includes js-cookie; see below
add_filter( 'option_ucf_alert_include_css', '__return_false' ); // UCF WP Theme rolls its own alert layout/styles
add_filter( 'option_ucf_alert_include_js', '__return_true' ); // UCF WP Theme uses vanilla UCF-Alert-Plugin js
add_filter( 'option_ucf_alert_include_js_deps', '__return_false' ); // UCF WP Theme includes js-cookie; see below

if ( !function_exists( 'ucfwp_alert_js_deps' ) ) {
function ucfwp_alert_js_deps() {
Expand Down

0 comments on commit 4b24998

Please sign in to comment.