Available Filters

Normal Buttons

Listed below are the available filters:

FilterParametersDescription

btnsx_options_filter

  • $btnsx_default_options - An array of default options.
This filter can be used to add options under button options panel on button page. Please check either the analytics extension or tooltips extension to see it in action.

btnsx_save_data_filter

  • $btnsx_data - An array of default data.
This filter can be used to save button data. Please check either the analytics extension or tooltips extension to see it in action.

btnsx_css_filter

 
  • $id - Button ID.
This filter can be used to add custom CSS to a button or all buttons.

btnsx_shortcode_attributes

  • $default - An array of default button short code attributes.
This filter can be used to add additional attributes to button short code. Please check either the analytics extension or tooltips extension to see it in action.

btnsx_output_button_secondary_text_class_filter

  • $options - An array of default button short code attributes.
  • $atts - User defined attributes.
This filter can be used to add custom class to secondary text element.

btnsx_container_before

  • $container_id - Actually button ID.

The default value is:

<div id="' . $container_id . '-container" class="btnsx-btn-container">

This filter can be used to change button container opening mark up.

btnsx_container_after

  • $container_id - Actually button ID.

The default value is:

</div>

This filter can be used to change button container closing mark up.

btnsx_wrap_before

  • $wrap_id - Actually button ID.

The default value is:

 <div id="' . $wrap_id . '-wrap" class="btnsx-btn-wrap" align="center">

This filter can be used to change button wrap center opening mark up.

btnsx_wrap_after

  • $wrap_id - Actually button ID.

The default value is:

 </div>

This filter can be used to change button wrap center closing mark up.

btnsx_output_button_before_filter

  • $options - An array of default button short code attributes.
  • $atts - User defined attributes.
This filter can be used add custom markup, etc. before the actual button markup.

btnsx_output_button_after_filter

  • $options - An array of default button short code attributes.
  • $atts - User defined attributes.
This filter can be used add custom markup, etc.after the actual button markup.

btnsx_output_button_attributes_filter

  • $options - An array of default button short code attributes.
  • $atts - User defined attributes.
This filter can be used to add custom button attributes.

btnsx_output_button_class_filter

  • $options - An array of default button short code attributes.
  • $atts - User defined attributes.
This filter can be used to add custom class(es) to button.

btnsx_output_button_icon_class_filter

  • $options - An array of default button short code attributes.
  • $atts - User defined attributes.
This filter can be used to add custom class(es) to button icon.

btnsx_output_button_text_class_filter

  • $options - An array of default button short code attributes.
  • $atts - User defined attributes.
This filter can be used to add custom class(es) to button primary text.

 

Social Buttons

Listed below are the available filters:

FilterParametersDescription

btnsx_social_options_filter

  • $btnsx_default_options - An array of default social options.
This filter can be used to add options under button options panel on social buttons page.

Settings

Listed below are the available filters:

FilterParametersDescription

btnsx_settings_filter

  • $btnsx_default_options - An array of default settings.
This filter can be used to add options under button settings page.