Skip to content

Instantly share code, notes, and snippets.

@elvismdev
Created September 9, 2019 19:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elvismdev/15b9cba5a071b5251136ac9f36a94d7a to your computer and use it in GitHub Desktop.
Save elvismdev/15b9cba5a071b5251136ac9f36a94d7a to your computer and use it in GitHub Desktop.
Example usage filter `wpcfm_is_ssot`
<?php
/*
Plugin Name: WP-CFM SSOT
Description: Sets WP-CFM bundles as the Single Source of Truth for all tracked options.
*/
// If this file is called directly, abort.
if ( ! defined( 'WPINC' ) ) {
die;
}
/**
* Load options directly from WP-CFM configuration bundle files. Do not touch the database.
* @param bool $is_ssot - Default is false
* @return bool
*/
add_filter( 'wpcfm_is_ssot', '__return_true' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment