Launch Sale — 20% off all plugins. Limited time only.

Developer hooks

Refinery CRM provides filters that allow developers to customize plugin behavior. Use these hooks in a custom plugin or in your theme’s functions.php to modify settings and distribution logic.

Filters

refinery_crm_distribution

Filter the active distribution channel. The distribution channel determines where the plugin was purchased and controls which license, support, and documentation URLs are displayed.

apply_filters( 'refinery_crm_distribution', string $distribution )

Parameters:

  • $distribution (string) — The current distribution channel. Default is 'direct'. Possible values: 'direct', 'woocommerce_com'.

Example:

add_filter( 'refinery_crm_distribution', function( $distribution ) {
    return 'woocommerce_com';
} );

refinery_crm_wc_settings

Filter the CRM settings array registered under the WooCommerce Settings tab. Use this to add, remove, or modify CRM settings fields that appear under WooCommerce > Settings > CRM.

apply_filters( 'refinery_crm_wc_settings', array $settings )

Parameters:

  • $settings (array) — Array of WooCommerce settings fields in the standard WC_Settings_API format.

Example:

add_filter( 'refinery_crm_wc_settings', function( $settings ) {
    $settings[] = array(
        'title' => 'Custom CRM option',
        'id'    => 'refinery_crm_custom_option',
        'type'  => 'checkbox',
        'desc'  => 'Enable a custom CRM feature.',
    );
    return $settings;
} );

Grow Your Store Smarter

One email a week with plugin updates, revenue tactics, and strategies top WooCommerce stores use to scale.

By subscribing, you agree to our Privacy Policy. Unsubscribe anytime.

Item added to cart.
0 items - $0.00