-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from jabranr/enable-support-for-acf-pro
Enable ACF pro support
- Loading branch information
Showing
4 changed files
with
34 additions
and
8 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,7 @@ | |
* Plugin URI: https://github.com/jabranr/nullify-empty-fields-for-acf | ||
* Description: Set Advanced Custom Fields (ACF) empty field value as <code>null</code> instead of <code>false</code> to avoid GraphQL error in GatsbyJS. | ||
* Author: Jabran Rafique <[email protected]> | ||
* Version: 1.0.0 | ||
* Version: 1.1.0 | ||
* Author URI: https://jabran.me?utm_source=nullify-empty-fields-for-acf | ||
* License: MIT License | ||
* | ||
|
@@ -106,7 +106,7 @@ function nullify_empty_fields_for_acf_deactivate() { | |
* Activate hook callback function | ||
*/ | ||
function nullify_empty_fields_for_acf_activate() { | ||
if (!is_plugin_active('advanced-custom-fields/acf.php')) { | ||
if (!nullify_empty_fields_for_acf_is_acf_active()) { | ||
wp_die(sprintf('This plugin only works with <a href="%s" target="_blank" rel="noopener">Advanced Custom Fields (ACF)</a>. Please install and activate ACF before using this plugin.', 'https://wordpress.org/plugins/advanced-custom-fields/?utm_source=nullify-empty-fields-for-acf')); | ||
} | ||
|
||
|
This file contains 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
This file contains 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
This file contains 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