AddToAny Share Buttons icon
Social Media

AddToAny Share Buttons hooks reference

  • By micropat
  • v1.8.18
  • Updated

AddToAny Share Buttons 1.8.18 has 2 actions and 8 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when AddToAny Share Buttons fires an action
add_action( 'end_A2A_SHARE_SAVE_meta_box_content', function( $post ) {
	// Your code runs here.
}, 10, 1 );

// Change a value AddToAny Share Buttons is about to use
add_filter( 'addtoany_sharing_disabled', function( $sharing_disabled ) {
	// Change $sharing_disabled here.
	return $sharing_disabled;
}, 10, 1 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • addtoany.compat.php line 113 · used in 4 places
    apply_filters( 'addtoany_sharing_disabled', $sharing_disabled );
  • add-to-any.php line 243 · used in 2 places
    apply_filters( 'A2A_FOLLOW_services', $A2A_FOLLOW_services );
  • addtoany.admin.php line 231 · used in 2 places
    apply_filters( 'A2A_SHARE_SAVE_services', $A2A_SHARE_SAVE_services );
  • add-to-any.php line 224 · used in 2 places
    apply_filters( 'addtoany_icons_bg_color', '' );
  • add-to-any.php line 921 · used in 2 places
    apply_filters( 'addtoany_script_disabled', false );
  • widget_title

    filter
    addtoany.widgets.php line 55 · used in 2 places
    apply_filters( 'widget_title', $instance['title'] );
  • addtoany.admin.php line 10
    apply_filters( 'A2A_SHARE_SAVE_meta_box_title', __( 'AddToAny', 'add-to-any' ) );
  • add-to-any.php line 884
    apply_filters( 'addtoany_content_priority', 98 );
  • addtoany.admin.php line 52
    do_action( 'end_A2A_SHARE_SAVE_meta_box_content', $post );
  • addtoany.admin.php line 34
    do_action( 'start_A2A_SHARE_SAVE_meta_box_content', $post );

Generated from AddToAny Share Buttons's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: