-
-
Save soderlind/ff0335605a8c4bc93a71f05560c28faa to your computer and use it in GitHub Desktop.
Revisions
-
mattradford revised this gist
Apr 27, 2016 . 1 changed file with 4 additions and 4 deletions.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,10 @@ // Place this in wp-config define( 'ACF_5_KEY', 'yourkeyhere' ); // Set ACF 5 license key on theme activation. Stick in your functions.php or equivalent. function auto_set_license_keys() { if ( ! get_option( 'acf_pro_license' ) && defined( 'ACF_5_KEY' ) ) { $save = array( 'key' => ACF_5_KEY, @@ -14,7 +14,7 @@ function auto_set_license_keys() { $save = maybe_serialize($save); $save = base64_encode($save); update_option( 'acf_pro_license', $save ); } } add_action( 'after_switch_theme', 'auto_set_license_keys' ); -
mattradford revised this gist
Nov 12, 2015 . No changes.There are no files selected for viewing
-
mattradford revised this gist
Nov 12, 2015 . No changes.There are no files selected for viewing
-
mattradford revised this gist
Nov 12, 2015 . No changes.There are no files selected for viewing
-
mattradford revised this gist
Nov 12, 2015 . No changes.There are no files selected for viewing
-
mattradford revised this gist
Nov 4, 2015 . No changes.There are no files selected for viewing
-
mattradford revised this gist
Nov 4, 2015 . No changes.There are no files selected for viewing
-
mattradford created this gist
Nov 4, 2015 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ // Place this in wp-config define('ACF_5_KEY','yourkeyhere'); // Set ACF 5 license key on theme activation. Stick in your functions.php or equivalent. function auto_set_license_keys() { if ( !get_option('acf_pro_license') && defined('ACF_5_KEY') ) { $save = array( 'key' => ACF_5_KEY, 'url' => home_url() ); $save = maybe_serialize($save); $save = base64_encode($save); update_option('acf_pro_license', $save); } } add_action('after_switch_theme', 'auto_set_license_keys');