Skip to content
Snippets Groups Projects
Commit 68c0efae authored by Christian Wach's avatar Christian Wach :soccer:
Browse files

Prevent errors on Tadpole modified ACFE Pro instances

parent 87999572
No related branches found
No related tags found
No related merge requests found
......@@ -99,7 +99,7 @@ class CFAFA_ACFE {
private function register_hooks() {
// Register ACFE Form Actions.
if ( version_compare( $this->acfe_version, '0.9', '>=' ) ) {
if ( version_compare( $this->acfe_version, '0.9', '>=' ) && version_compare( $this->acfe_version, '895', '<' ) ) {
add_action( 'acf/include_field_types', [ $this, 'register_form_actions_latest' ], 50 );
} else {
add_action( 'acfe/include_form_actions', [ $this, 'register_form_actions_legacy' ], 50 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment