WordPress filter hook

productive_global_section_sharing_options_init_fields

Fired by 6 WordPress plugins, running on 90+ sites between them.

How to use productive_global_section_sharing_options_init_fields

It's a filter: your callback receives the value, and must return the (changed) value. Add this to your theme's functions.php or a small custom plugin:

functions.php
add_filter( 'productive_global_section_sharing_options_init_fields', function( $global_section_sharing_options_init_fields ) {
	// Change $global_section_sharing_options_init_fields here.
	return $global_section_sharing_options_init_fields;
}, 10, 1 );

Argument names come from Productive Commerce's source. Other plugins may pass different values: check the call in the plugin you're targeting below.

6 plugins that fire productive_global_section_sharing_options_init_fields

Sorted by active installs. Each entry shows where the plugin calls the hook and what it passes.

  1. Productive Commerce icon Productive Commerce40+ installs apply_filters( 'productive_global_section_sharing_options_init_fields', productive_global_section_sharing_options_init_fields() ) admin/common/options/global/global-sharing.php:31
  2. PASS Addons icon PASS Addons20+ installs apply_filters( 'productive_global_section_sharing_options_init_fields', productive_global_section_sharing_options_init_fields() ) admin/common/options/global/global-sharing.php:31
  3. Productive Forms icon Productive Forms10+ installs apply_filters( 'productive_global_section_sharing_options_init_fields', productive_global_section_sharing_options_init_fields() ) admin/common/options/global/global-sharing.php:31
  4. Productive Style icon Productive Style10+ installs apply_filters( 'productive_global_section_sharing_options_init_fields', productive_global_section_sharing_options_init_fields() ) admin/common/options/global/global-sharing.php:31
  5. Productive Demo Importer icon Productive Demo Importer10+ installs apply_filters( 'productive_global_section_sharing_options_init_fields', productive_global_section_sharing_options_init_fields() ) admin/common/options/global/global-sharing.php:31
  6. PASS AI icon PASS AIFewer than 10 installs apply_filters( 'productive_global_section_sharing_options_init_fields', productive_global_section_sharing_options_init_fields() ) admin/common/options/global/global-sharing.php:31

Need a customisation built on this hook?

Tell us what you want to change and which plugin it's for. We'll write it, test it and send it back as a small plugin.