Created
September 9, 2019 19:44
-
-
Save elvismdev/15b9cba5a071b5251136ac9f36a94d7a to your computer and use it in GitHub Desktop.
Example usage filter `wpcfm_is_ssot`
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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