Skip to content

Instantly share code, notes, and snippets.

@techjewel
Last active October 25, 2021 08:24
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 techjewel/7e2737d3d3002c0e0dc4fa6443738fbb to your computer and use it in GitHub Desktop.
Save techjewel/7e2737d3d3002c0e0dc4fa6443738fbb to your computer and use it in GitHub Desktop.
FluentCRM Meta Integration Control
<?php
/*
* FluentCRM Pro has integration with various plugin as WordPress Post/Settings meta.
* You can disable that by snippet and match plugin
*/
add_filter('fluentcrm_disable_integration_metaboxes', function($status, $plugin) {
$disableFluentCRMMeta = ['learndash','learnpress','lifterlms','tutorlms','woocommerce', 'edd'];
if(in_array($plugin, $disableFluentCRMMeta)) {
return true;
}
return $status;
}, 10, 2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment