New Version Geo My Wp 4.0 beta
-
Hej guys,
the Geo My Wp Plugin integration is not working for Geo My Wp 4.0 beta. So I followed the instructions to set up an integration for Complianz. I get a working placeholder. But its not shown in the integration overview and users cannot select the service on the gdpr settings page.
Geo My Wp 4.0
Complianz 6.5.2
WordPress 6.2.2plugins > geo-my-wp > complianz.php
defined( 'ABSPATH' ) or die ( "you do not have access to this page!" );
chield theme > functions.php
/** * Insert an integration * @param array $cmplz_integrations_list * * @return mixed */ function my_plugin_integration($cmplz_integrations_list){ $cmplz_integrations_list['GeoMyWp' ] = array( 'constant_or_function' => 'GMW_VERSION', 'label' => 'Geo My WP KB for WordPress', 'firstparty_marketing' => true, ); return $cmplz_integrations_list; } add_filter( 'cmplz_integrations', 'my_plugin_integration'); /** * @param string $path * @param string $plugin * * @return string */ function my_plugin_integration_path($path, $plugin){ if ( $plugin === 'GeoMyWp' ) { return 'wp-content/plugins/geo-my-wp/complianz.php'; } return $path; } add_filter( 'cmplz_integration_path', 'my_plugin_integration_path', 10, 2 ); /** * Add a script to the blocked list * @param array $tags * * @return array */ function cmplz_geomywp_script( $tags ) { $tags[] = array( 'name' => 'GeoMyWp', 'category' => 'marketing', 'urls' => array( 'geo-my-wp/assets/js/', ), 'enable_placeholder' => '1', 'placeholder' => 'openstreetmaps', 'placeholder_class' => 'gmw-ajax-form-container', 'enable_dependency' => '0', ); return $tags; } add_filter( 'cmplz_known_script_tags', 'cmplz_geomywp_script' );
About help I would be very happy.
Kind regards,
KianThe page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘New Version Geo My Wp 4.0 beta’ is closed to new replies.