wordpress-sdk icon indicating copy to clipboard operation
wordpress-sdk copied to clipboard

The tab navigation feature is available only when the argument 'is_org_compliant' is set

Open daigo75 opened this issue 4 years ago • 0 comments

🐞 bug report

Behavior: During the initialisation of the Freemius SDK, passing 'navigation' => 'tabs' with the settings is not sufficient to show the navigation tabs. For that to work, one also has to specify 'is_org_compliant' => true`. This seems to be due to a check, inside the SDK, that verifies that the tabs are enabled and that the WP.org compliance is set.

This won't enable the tabs

fs_dynamic_init(array(
	'id' => '8339',
	'slug' => 'plugin-slug',
	'type' => 'plugin',
	'navigation' => 'tabs',
	'is_org_compliant' => false,
	// Other arguments
));

This will enable the tabs

fs_dynamic_init(array(
	'id' => '8339',
	'slug' => 'plugin-slug',
	'type' => 'plugin',
	'navigation' => 'tabs',
	'is_org_compliant' => true,
	// Other arguments
));

Versions: (*)

  • Freemius SDK Version: 2.4.2
  • WordPress Version: 5.7.x
  • PHP Version: 7.2-7.4

Plugin / Theme: (*)

  • Name: WooCommerce Prices by Country
  • Slug: woocommerce-prices-by-country
  • Freemius ID: 8339

daigo75 avatar May 20 '21 15:05 daigo75