Created
October 18, 2024 05:52
-
-
Save aimahdi/d4824da897bdaa1aae09fc2b234e960d to your computer and use it in GitHub Desktop.
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
add_filter('fluentform/shortcode_defaults', function($data, $atts) { | |
$formId = \FluentForm\Framework\Helpers\ArrayHelper::get($atts, 'id'); | |
if ($formId) { | |
$form = \FluentForm\App\Models\Form::find($formId); | |
// check form and do your work and return null; | |
return null; | |
} | |
return $data; | |
}, 10, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment