Social Media Auto Poster 3.1.8 has 8 actions and 64 filters, read directly from its source code on Nov 18, 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.
// Run your own code when Social Media Auto Poster fires an action
add_action( 'wp_to_hootsuite_pro_api_refresh_token', function( $result, $client_id, $access_token, $refresh_token ) {
// Your code runs here.
}, 10, 4 );
// Change a value Social Media Auto Poster is about to use
add_filter( 'wpzinc_admin_body_class', function( $screens, $classes ) {
// Change $screens here.
return $screens;
}, 10, 2 );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
-
/** * Defines the number of seconds before timing out a request to the Hootsuite * API. */ apply_filters( "{$this->base->plugin->filter_name}_api_request", $timeout ); -
{$this->base->plugin->filter_name}_publish_register_post_searches_replacements
filter Copy link Customise this hook/** * Registers any additional status message tags, and their Post data * replacements, that are supported for the given Post. */ apply_filters( "{$this->base->plugin->filter_name}_publish_register_post_searches_replacements", $searches_replacements, $post ); -
{$this->base->plugin->filter_name}_admin_get_autocomplete_configuration
filter Copy link Customise this hook/** * Defines configuration for tribute.js autocomplete instances for Tags, * Facebook Pages and Twitter Username mentions. */ apply_filters( "{$this->base->plugin->filter_name}_admin_get_autocomplete_configuration", $autocomplete_configuration ); -
/** * Defines the number of seconds before timing out a request to the remote API. */ apply_filters( "{$this->base->plugin->filter_name}_api_request_timeout", $timeout ); -
{$this->base->plugin->filter_name}_common_convert_wordpress_gmt_offset_to_offset_value
filter Copy link Customise this hook/** * Converts WordPress' GMT Offset (e.g. -5, +3.3) to an offset value compatible * with WordPress' DateTime object (e.g. -0500, +0330) */ apply_filters( "{$this->base->plugin->filter_name}_common_convert_wordpress_gmt_offset_to_offset_value", $gmt_offset ); -
{$this->base->plugin->filter_name}_default_installation_settings
filter Copy link Customise this hook/** * Filters Default Post Type Settings used on Plugin Activation before they are * returned. */ apply_filters( "{$this->base->plugin->filter_name}_default_installation_settings", $settings ); -
/** * Defines available taxonomies, regardless of Post Type, which are used in the * Conditions: Taxonomies dropdowns for each individual status. */ apply_filters( "{$this->base->plugin->filter_name}_get_all_taxonomies", $taxonomies ); -
/** * Defines the Post Type Objects that cannot have statues defined and not be * sent to social media. */ apply_filters( "{$this->base->plugin->filter_name}_get_excluded_post_types", $types ); -
/** * Defines taxonomies to exclude from the Conditions: Taxonomies dropdowns for * each individual status. */ apply_filters( "{$this->base->plugin->filter_name}_get_excluded_taxonomies", $taxonomies ); -
{$this->base->plugin->filter_name}_get_google_business_end_date_options
filter Copy link Customise this hook/** * Defines the available start date options for a Google Business Profile * status. */ apply_filters( "{$this->base->plugin->filter_name}_get_google_business_end_date_options", $schedule, $post_type ); -
{$this->base->plugin->filter_name}_get_google_business_start_date_options
filter Copy link Customise this hook/** * Defines the available start date options for a Google Business Profile * status. */ apply_filters( "{$this->base->plugin->filter_name}_get_google_business_start_date_options", $schedule, $post_type ); -
/** * Filters the log entries before output. */ apply_filters( "{$this->base->plugin->filter_name}_get_log", $log, $post_id ); -
/** * Defines the registered filters that can be used on the Log WP_List_Tables. */ apply_filters( "{$this->base->plugin->filter_name}_get_log_filters", $filters ); -
/** * Defines the Post actions which trigger status(es) to be sent to social * media. */ apply_filters( "{$this->base->plugin->filter_name}_get_post_actions", $actions ); -
/** * Defines the Post actions which trigger status(es) to be sent to social * media, with labels set to the past tense. */ apply_filters( "{$this->base->plugin->filter_name}_get_post_actions_past_tense", $actions ); -
/** * Defines the available Post Type Objects that can have statues defined and be * sent to social media. */ apply_filters( "{$this->base->plugin->filter_name}_get_post_types", $types ); -
/** * Defines the available schedule options for each individual status. */ apply_filters( "{$this->base->plugin->filter_name}_get_schedule_options", $schedule, $post_type, $is_post_screen ); -
/** * Filters Post Type Settings before they are returned. */ apply_filters( "{$this->base->plugin->filter_name}_get_settings", $settings, $type ); -
/** * Defines the available Featured Image select dropdown options on a status, * depending on the Plugin and Social Network the status message is for. */ apply_filters( "{$this->base->plugin->filter_name}_get_status_image_options", $options, $network, $post_type ); -
{$this->base->plugin->filter_name}_get_status_post_type_options
filter Copy link Customise this hook/** * Defines the available status post type options. */ apply_filters( "{$this->base->plugin->filter_name}_get_status_post_type_options", $status_post_type_options ); -
/** * Defines Dynamic Status Tags that can be inserted into status(es) for the * given Post Type. These tags are also added to any 'Insert Tag' dropdowns. */ apply_filters( "{$this->base->plugin->filter_name}_get_tags", $tags, $post_type ); -
{$this->base->plugin->filter_name}_get_tags_excluded_from_character_limit
filter Copy link Customise this hook/** * Defines the tags that cannot have a character limit applied to them, as * doing so would wrongly concatenate data (e.g. a URL would become malformed). */ apply_filters( "{$this->base->plugin->filter_name}_get_tags_excluded_from_character_limit", $tags ); -
/** * Defines available taxonomies for the given Post Type, which are used in the * Conditions: Taxonomies dropdowns for each individual status. */ apply_filters( "{$this->base->plugin->filter_name}_get_taxonomies", $taxonomies, $post_type ); -
{$this->base->plugin->filter_name}_get_transient_expiration_time
filter Copy link Customise this hook/** * Defines the number of seconds before expiring transients. */ apply_filters( "{$this->base->plugin->filter_name}_get_transient_expiration_time", $expiration_time ); -
{$this->base->plugin->filter_name}_image_get_images_sources_convert
filter Copy link Customise this hook/** * Defines the image ID to use as the image or additional image for the status * message. If an image's mime type is not supported by the social media * scheduling service, this filter can be used to convert the image to a * supported type, store it in the Media Library and return the converted image * ID. */ apply_filters( "{$this->base->plugin->filter_name}_image_get_images_sources_convert", $image_id, $source, $service, $image_mime_type ); -
/** * Defines the available log levels */ apply_filters( "{$this->base->plugin->filter_name}_log_get_log_levels", $log_levels ); -
/** * Defines the available result options */ apply_filters( "{$this->base->plugin->filter_name}_log_get_result_options", $result_options ); -
/** * Run any actions immediately after deleting all notices. */ do_action( "{$this->base->plugin->filter_name}_notices_delete_notices" ); -
/** * Filters the error notices to return. */ apply_filters( "{$this->base->plugin->filter_name}_notices_get_error_notices", $error_notices, $this->notices ); -
/** * Filters the success and error notices to return. */ apply_filters( "{$this->base->plugin->filter_name}_notices_get_notices", $notices ); -
/** * Filters the success notices to return. */ apply_filters( "{$this->base->plugin->filter_name}_notices_get_success_notices", $success_notices, $this->notices ); -
/** * Filters the error notices to return. */ apply_filters( "{$this->base->plugin->filter_name}_notices_get_warning_notices", $warning_notices, $this->notices ); -
/** * Filters the success and error notices to save. */ apply_filters( "{$this->base->plugin->filter_name}_notices_save", $notices ); -
/** * Allow the API to output its authentication button link or form, to * authenticate with the API. */ do_action( "{$this->base->plugin->filter_name}_output_auth" ); -
{$this->base->plugin->filter_name}_publish_apply_character_limit
filter Copy link Customise this hook/** * Filters the character limited text. */ apply_filters( "{$this->base->plugin->filter_name}_publish_apply_character_limit", $text, $character_limit ); -
{$this->base->plugin->filter_name}_publish_apply_sentence_limit
filter Copy link Customise this hook/** * Applies the given sentence limit to the given text. */ apply_filters( "{$this->base->plugin->filter_name}_publish_apply_sentence_limit", $text, $sentence_limit, $original_text ); -
{$this->base->plugin->filter_name}_publish_apply_text_transformation
filter Copy link Customise this hook/** * Applies the given transformation to the given value */ apply_filters( "{$this->base->plugin->filter_name}_publish_apply_text_transformation", $value, $transformation ); -
/** * Applies the given word limit to the given text. */ apply_filters( "{$this->base->plugin->filter_name}_publish_apply_word_limit", $text, $word_limit, $original_text ); -
/** * Determine the standardised arguments array to send via the API for a status * message's settings. */ apply_filters( "{$this->base->plugin->filter_name}_publish_build_args", $args, $post, $profile_id, $service, $status, $action ); -
{$this->base->plugin->filter_name}_publish_get_all_possible_searches_replacements
filter Copy link Customise this hook/** * Registers any additional status message tags, and their Post data * replacements, that are supported. */ apply_filters( "{$this->base->plugin->filter_name}_publish_get_all_possible_searches_replacements", $searches_replacements, $post, $author ); -
/** * Filters the dynamic {content} replacement, when a Post's status is being * built. */ apply_filters( "{$this->base->plugin->filter_name}_publish_get_content", $content, $post, $is_gutenberg_request_content ); -
/** * Filters the dynamic {excerpt} replacement, when a Post's status is being * built. */ apply_filters( "{$this->base->plugin->filter_name}_publish_get_excerpt", $excerpt, $post ); -
/** * Filters the Post's Permalink, including or excluding a trailing slash, * depending on the Plugin settings */ apply_filters( "{$this->base->plugin->filter_name}_publish_get_permalink", $url, $post, $force_trailing_forwardslash ); -
/** * Filters the Post's Permalink, including or excluding a trailing slash, * depending on the Plugin settings */ apply_filters( "{$this->base->plugin->filter_name}_publish_get_short_permalink", $url, $post ); -
/** * Filters the dynamic {title} replacement, when a Post's status is being * built. */ apply_filters( "{$this->base->plugin->filter_name}_publish_get_title", $title, $post ); -
{$this->base->plugin->filter_name}_publish_parse_google_business_end_date_{$status['googlebusiness']['end_date_option']}
filter Copy link Customise this hook/** * Allows integrations to define the status' end date for a Google Business * Profile Offer or Event. */ apply_filters( "{$this->base->plugin->filter_name}_publish_parse_google_business_end_date_{$status['googlebusiness']['end_date_option']}", $date, $google_business_args, $status, $post ); -
{$this->base->plugin->filter_name}_publish_parse_google_business_start_date_{$status['googlebusiness']['start_date_option']}
filter Copy link Customise this hook/** * Allows integrations to define the status' start date for a Google Business * Profile Offer or Event. */ apply_filters( "{$this->base->plugin->filter_name}_publish_parse_google_business_start_date_{$status['googlebusiness']['start_date_option']}", $date, $google_business_args, $status, $post ); -
/** * Filters the parsed status message text on a status. */ apply_filters( "{$this->base->plugin->filter_name}_publish_parse_text", $text, $message, $this->searches_replacements, $this->all_possible_searches_replacements, $post, $author ); -
{$this->base->plugin->filter_name}_publish_parse_text_term_hashtag
filter Copy link Customise this hook/** * Defines the Taxonomy Term Hashtag to replace the status template tag. */ apply_filters( "{$this->base->plugin->filter_name}_publish_parse_text_term_hashtag", $term_name, $tag_params['taxonomy_term_format'], $term, $tag_params['taxonomy'], $text ); -
/** * Determine the statuses to send, just before they're sent. Statuses can be * added, edited and/or deleted as necessary here. */ apply_filters( "{$this->base->plugin->filter_name}_publish_statuses", $statuses, $post_id, $action ); -
/** * Perform any pre-oAuth actions now, such as starting the oAuth process */ do_action( "{$this->base->plugin->filter_name}_save_settings_auth" ); -
/** * Returns a skeleton status object for the given action, used when defining * new status(es) */ apply_filters( "{$this->base->plugin->filter_name}_settings_get_default_status", $status ); -
/** * Backward compat filter to define the Taxonomy Term Name to replace the * status template tag. _publish_parse_text_term_name and * _publish_parse_text_term_hashtag should be used instead. */ apply_filters( "{$this->base->plugin->filter_name}_term", $term_name, $term->name, $tag_params['taxonomy'], $text, $tag_params['taxonomy_term_format'] ); -
/** * Filters the key and value pair before saving to the options table. */ apply_filters( "{$this->base->plugin->filter_name}_update_option", $value, $key ); -
/** * Filters Post Type Settings before they are saved. */ apply_filters( "{$this->base->plugin->filter_name}_update_settings", $settings, $type, $existing_settings ); -
{$this->base->plugin->filter_name}_validate_check_for_duplicates_status_keys
filter Copy link Customise this hook/** * Defines the key values to compare across all statuses for a Post Type and * Social Profile combination, to ensure no duplicate statuses have been * defined. */ apply_filters( "{$this->base->plugin->filter_name}_validate_check_for_duplicates_status_keys", $status_keys_to_compare ); -
/** * Defines the data to include in the export file. Plugins hook into this to * define the data. */ apply_filters( "{str_replace('-','_',$this->plugin->name)}_export", $data, $_POST ); -
/** * Add any form options to the Export screen */ do_action( "{str_replace('-','_',$this->plugin->name)}_export_view" ); -
/** * Filter the import sources. */ apply_filters( "{str_replace('-','_',$this->plugin->name)}_import_sources", array() ); -
/** * Perform any actions with the new access token, such as saving it. */ do_action( 'wp_to_hootsuite_pro_api_refresh_token', $result, $this->client_id, $this->access_token, $this->refresh_token ); -
/** * Perform any actions when refreshing an expired access token fails. */ do_action( 'wp_to_hootsuite_pro_api_refresh_token_error', $result, $this->client_id, $this->access_token, $this->refresh_token ); -
/** * Filter the body classes to output on the <body> tag. */ apply_filters( 'wpzinc_admin_body_class', $screens, $classes ); -
/** * Filter the action links. */ apply_filters( 'wpzinc_dashboard_add_action_link', $links, $this->plugin->name, $this->plugin ); -
wpzinc_dashboard_should_load_minified_js_plugins
filter Used by 9 plugins → Copy link Customise this hook/** * Defines an array of third party minification Plugins that, if activate, will * result in this Plugin's JS non-minified files being loaded. */ apply_filters( 'wpzinc_dashboard_should_load_minified_js_plugins', $minification_plugins ); -
apply_filters( "{$this->base->plugin->filter_name}_publish_get_date", $date, $post ); -
apply_filters( "{str_replace('-','_',$this->plugin->name)}_import", $result, $import ); -
apply_filters( 'get_the_excerpt', $post->post_excerpt, $post ); -
apply_filters( 'the_content', $content );
Generated from Social Media Auto Poster'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 thisPlugin 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 thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: