ShareMyPost 1.0.7 has 8 actions and 19 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.
php functions.phpyour child theme Copy
// Run your own code when ShareMyPost fires an action
add_action( 'sharemypost_click_to_x_settings', function() {
// Your code runs here.
}, 10, 1 );
// Change a value ShareMyPost is about to use
add_filter( 'sharemypost_default_settings', function( $defaults ) {
// Change $defaults here.
return $defaults;
}, 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
php main/settings/ui.php
line 202
Example
do_action( 'sharemypost_click_to_x_settings' );
php main/settings/ui.php
line 198
Example
do_action( 'sharemypost_configuration_settings' );
php main/admin.php
line 122
Example
do_action( 'sharemypost_custom_networks_settings' );
php main/util.php
line 33
Example
apply_filters( 'sharemypost_default_settings', $defaults );
php main/helpers.php
line 144
Example
apply_filters( 'sharemypost_enabled_networks_key', [ 'inline' => 'inline_enabled_networks', ], $type );
php main/admin.php
line 124
Example
do_action( 'sharemypost_floating_bar_settings' );
php main/settings/ui.php
line 194
Example
do_action( 'sharemypost_inline_ai_network_settings', $settings, $opt );
php main/settings/ui.php
line 144
Example
do_action( 'sharemypost_inline_content_settings', $settings, $opt );
php main/helpers.php
line 201
Example
apply_filters( 'sharemypost_inline_networks_list', $all_networks );
php main/settings/ui.php
line 95
Example
do_action( 'sharemypost_inline_style_settings', $settings, 'sharemypost_settings' );
php main/settings/ui.php
line 151
Example
apply_filters( 'sharemypost_network_grid_note', esc_html__('Choose which networks should appear in share bars. Drag cards to reorder.', 'sharemypost') );
php main/settings/ui.php
line 150
Example
apply_filters( 'sharemypost_network_grid_sortable', true );
php main/helpers.php
line 183
Example
apply_filters( 'sharemypost_network_order_key', [ 'inline' => 'inline_network_order', ], $type );
php main/helpers.php
line 135
Example
apply_filters( 'sharemypost_networks', $networks );
php main/admin.php
line 127
Example
do_action( 'sharemypost_render_license_page' );
php main/helpers.php
line 306
Example
apply_filters( 'sharemypost_sanitize_settings', $input, $defaults, $current );
php main/helpers.php
line 594
Example
apply_filters( 'sharemypost_share_bar_after_buttons', '', $post_id, $is_floating, $settings, $type );
php main/helpers.php
line 508
Example
apply_filters( 'sharemypost_share_bar_before_buttons', '', $post_id, $is_floating, $settings, $type );
php main/helpers.php
line 516
Example
apply_filters( 'sharemypost_share_bar_button_classes', $btn_classes, $btn, $post_id, $is_floating, $settings );
php main/helpers.php
line 585
Example
apply_filters( 'sharemypost_share_bar_button_inner', $html, $btn, $post_id, $is_floating, $settings );
php main/helpers.php
line 471
Example
apply_filters( 'sharemypost_share_bar_buttons', $buttons, $post_id, $is_floating, $settings );
php main/helpers.php
line 598
Example
apply_filters( 'sharemypost_share_bar_html', $html, $post_id, $is_floating, $settings );
php main/helpers.php
line 504
Example
apply_filters( 'sharemypost_share_bar_style_vars', $style_vars, $post_id, $is_floating, $settings );
php main/helpers.php
line 493
Example
apply_filters( 'sharemypost_share_bar_wrapper_classes', $wrapper_classes, $post_id, $is_floating, $settings );
php main/helpers.php
line 322
Example
apply_filters( 'sharemypost_share_url_permalink', $permalink, $post, $network, $settings );
php main/helpers.php
line 400
Example
apply_filters( 'sharemypost_show_on_front_page', false );
Generated from ShareMyPost's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
Code written against the plugin’s actions and filters Tested on a staging copy of your site Install instructions included
Typical turnaround: 2–3 business days
Choose this
Plugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
Built as a companion plugin, so updates never wipe it Exact quote before we start Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose this
Can't find the right hook?
We can build the customisation for you. Describe what you need: