Social Post Flow 1.4.6 has 12 actions and 112 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 Post Flow fires an action
add_action( 'social_post_flow_api_refresh_token_error', function( $response, $client_id, $access_token, $refresh_token ) {
// Your code runs here.
}, 10, 4 );
// Change a value Social Post Flow is about to use
add_filter( 'social_post_flow_publish_register_post_searches_replacements', function( $searches_replacements, $post ) {
// Change $searches_replacements here.
return $searches_replacements;
}, 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
-
/** * Perform any actions when refreshing fails. */ do_action( 'social_post_flow_api_refresh_token_error', $response, $this->client_id, $this->access_token, $this->refresh_token ); -
/** * Registers any additional status message tags, and their Post data * replacements, that are supported for the given Post. */ apply_filters( 'social_post_flow_publish_register_post_searches_replacements', $searches_replacements, $post ); -
/** * 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() ); -
/** * Defines configuration for tribute.js autocomplete instances for Tags, * Facebook Pages and Twitter Username mentions. */ apply_filters( 'social_post_flow_admin_get_autocomplete_configuration', $autocomplete_configuration ); -
/** * Defines whether to enable SSL verification for the Social Post Flow API. */ apply_filters( 'social_post_flow_api_enable_ssl_verification', $enable_ssl_verification ); -
/** * Perform any actions with the new access token, such as saving it. */ do_action( 'social_post_flow_api_get_access_token', $result, $this->client_id ); -
/** * Defines the number of seconds before timing out a request to the Social Post * Flow API. */ apply_filters( 'social_post_flow_api_get_timeout', $timeout ); -
/** * Perform any actions with the new access token, such as saving it. */ do_action( 'social_post_flow_api_refresh_token', $result, $this->client_id, $previous_access_token, $previous_refresh_token ); -
/** * Defines Bulk Actions to be added to the select dropdown on WP_List_Tables. */ apply_filters( 'social_post_flow_bulk_actions_register_bulk_actions', $bulk_actions, $actions ); -
/** * Filters WP_Query arguments for fetching Post IDs for a given Post Type, that * are then checked to see if reposting is required. */ apply_filters( 'social_post_flow_bulk_publish_get_post_ids', $args, $post_type, $params ); -
social_post_flow_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( 'social_post_flow_common_convert_wordpress_gmt_offset_to_offset_value', $gmt_offset ); -
/** * The number of days before an access token expires to refresh it. */ apply_filters( 'social_post_flow_cron_refresh_token_days_before_expiry', 3 ); -
/** * Filters Default Post Type Settings used on Plugin Activation before they are * returned. */ apply_filters( 'social_post_flow_default_installation_settings', $settings ); -
/** * Filters the keys that are used to store Plugin data in the options table. */ apply_filters( 'social_post_flow_get_all', $keys, $post_types ); -
/** * Defines available taxonomies, regardless of Post Type, which are used in the * Conditions: Taxonomies dropdowns for each individual status. */ apply_filters( 'social_post_flow_get_all_taxonomies', $taxonomies ); -
/** * Defines the available override options to display in the meta box for * individual Posts. */ apply_filters( 'social_post_flow_get_authors', $authors ); -
/** * Defines the available Post comparison operators, used for Conditional * Options on status(es). */ apply_filters( 'social_post_flow_get_comparison_operators', $comparison_operators ); -
/** * Defines the available Options for Taxonomy Terms Conditionals. */ apply_filters( 'social_post_flow_get_condition_options', $options ); -
/** * Defines the available Custom Field comparison operators, used for * Conditional Options on status(es). */ apply_filters( 'social_post_flow_get_custom_field_comparison_operators', $comparison_operators ); -
/** * Defines the available days. */ apply_filters( 'social_post_flow_get_days', $days ); -
/** * Defines the Post Type Objects that cannot have statues defined and not be * sent to social media. */ apply_filters( 'social_post_flow_get_excluded_post_types', $types ); -
/** * Defines taxonomies to exclude from the Conditions: Taxonomies dropdowns for * each individual status. */ apply_filters( 'social_post_flow_get_excluded_taxonomies', $taxonomies ); -
/** * Defines WordPress User Roles to exclude from Settings screens. */ apply_filters( 'social_post_flow_get_excluded_user_roles', $excluded_roles ); -
/** * Defines the available TTF fonts for use with Text to Image */ apply_filters( 'social_post_flow_get_fonts', $fonts ); -
/** * Defines the available start date options for a Google Business Profile * status. */ apply_filters( 'social_post_flow_get_google_business_end_date_options', $schedule, $post_type ); -
/** * Defines the available start date options for a Google Business Profile * status. */ apply_filters( 'social_post_flow_get_google_business_start_date_options', $schedule, $post_type ); -
/** * Filters the log entries before output. */ apply_filters( 'social_post_flow_get_log', $log, $post_id ); -
/** * Defines the registered filters that can be used on the Log WP_List_Tables. */ apply_filters( 'social_post_flow_get_log_filters', $filters ); -
/** * Defines the Plugins that output OpenGraph metadata on Posts, Pages and * Custom Post Types. */ apply_filters( 'social_post_flow_get_opengraph_seo_plugins', $plugins ); -
/** * Defines the available WP_Query compatible order options. */ apply_filters( 'social_post_flow_get_order', $order ); -
/** * Defines the available WP_Query compatible order by options. */ apply_filters( 'social_post_flow_get_order_by', $order_by ); -
/** * Defines the available override options to display in the meta box for * individual Posts. */ apply_filters( 'social_post_flow_get_override_options', $options ); -
/** * Defines the Post actions which trigger status(es) to be sent to social * media. */ apply_filters( 'social_post_flow_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( 'social_post_flow_get_post_actions_past_tense', $actions ); -
/** * Filters Status Settings for a specific Post. */ apply_filters( 'social_post_flow_get_post_meta', $settings, $post_id ); -
/** * Defines the available Post Type Objects that can have statues defined and be * sent to social media. */ apply_filters( 'social_post_flow_get_post_types', $types ); -
/** * Defines available Reposting frequency units when defining Repost status(es). */ apply_filters( 'social_post_flow_get_repost_frequency_units', $units ); -
/** * Defines the available schedule options, relative to a custom field, for each * individual status. */ apply_filters( 'social_post_flow_get_schedule_custom_relation_options', $schedule ); -
/** * Defines the available schedule options for each individual status. */ apply_filters( 'social_post_flow_get_schedule_options', $schedule, $post_type, $is_post_screen ); -
/** * Defines the available days for a status' Custom Time (Relative Format) * option. */ apply_filters( 'social_post_flow_get_schedule_relative_days', $days ); -
/** * Filters Post Type Settings before they are returned. */ apply_filters( 'social_post_flow_get_settings', $settings, $type ); -
/** * Defines the image size limit for the given social media service. */ apply_filters( 'social_post_flow_get_social_media_image_size', $image_size, $service, $format ); -
/** * Defines the optimal image sizes for each social network. */ apply_filters( 'social_post_flow_get_social_media_image_sizes', $image_sizes ); -
/** * Defines the available Additional Images select dropdown options on a status. */ apply_filters( 'social_post_flow_get_status_additional_image_options', $options, $network, $post_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( 'social_post_flow_get_status_image_options', $options, $network, $post_type ); -
/** * Defines the available status post type options. */ apply_filters( 'social_post_flow_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( 'social_post_flow_get_tags', $tags, $post_type ); -
/** * 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( 'social_post_flow_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( 'social_post_flow_get_taxonomies', $taxonomies, $post_type ); -
/** * Defines the number of seconds before expiring transients. */ apply_filters( 'social_post_flow_get_transient_expiration_time', $expiration_time ); -
/** * Defines WordPress User Roles. */ apply_filters( 'social_post_flow_get_user_roles', $roles ); -
/** * Defines the available log levels */ apply_filters( 'social_post_flow_log_get_log_levels', $log_levels ); -
/** * Defines the available result options */ apply_filters( 'social_post_flow_log_get_result_options', $result_options ); -
/** * Defines the number of seconds before expiring transients. */ apply_filters( 'social_post_flow_maybe_remove_post_types_by_role', $post_types, $role ); -
/** * Defines the number of seconds before expiring transients. */ apply_filters( 'social_post_flow_maybe_remove_profiles_by_role', $arr, $role ); -
/** * Run any actions immediately after deleting all notices. */ do_action( 'social_post_flow_notices_delete_notices' ); -
/** * Filters the error notices to return. */ apply_filters( 'social_post_flow_notices_get_error_notices', $error_notices, $this->notices ); -
/** * Filters the success, warning anderror notices to return. */ apply_filters( 'social_post_flow_notices_get_notices', $notices ); -
/** * Filters the success notices to return. */ apply_filters( 'social_post_flow_notices_get_success_notices', $success_notices, $this->notices ); -
/** * Filters the error notices to return. */ apply_filters( 'social_post_flow_notices_get_warning_notices', $warning_notices, $this->notices ); -
/** * Filters the success and error notices to save. */ apply_filters( 'social_post_flow_notices_save', $notices ); -
/** * Output condition settings for Integrations / Third Party Plugins */ do_action( 'social_post_flow_output_condition_form_fields', $post_type ); -
/** * Output Schedule settings for Integrations / Third Party Plugins */ do_action( 'social_post_flow_output_schedule_options_form_fields', $post_type ); -
/** * Filters the character limited text. */ apply_filters( 'social_post_flow_publish_apply_character_limit', $text, $character_limit ); -
/** * Applies the given sentence limit to the given text. */ apply_filters( 'social_post_flow_publish_apply_sentence_limit', $text, $sentence_limit, $original_text ); -
/** * Applies the given transformation to the given value */ apply_filters( 'social_post_flow_publish_apply_text_transformation', $value, $transformation ); -
/** * Applies the given word limit to the given text. */ apply_filters( 'social_post_flow_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( 'social_post_flow_publish_build_args', $args, $post, $profile_id, $service, $status, $action ); -
/** * Allows third party integrations to define the image to use for the status. */ apply_filters( 'social_post_flow_publish_build_args_image', $image, $status['image'], $post, $profile_id, $service, $status, $action ); -
social_post_flow_publish_builds_args_schedule_{$status['schedule']}
filter Copy link Customise this hook/** * Allows integrations to define when the status should be scheduled for * publication */ apply_filters( "social_post_flow_publish_builds_args_schedule_{$status['schedule']}", $scheduled_at, $status, $post ); -
/** * Determine if a statuses meta conditionals have been met, where the * conditional is not a plugin standard option. */ apply_filters( 'social_post_flow_publish_condition_passed', true, $comparison, $type, $id, $value, $condition_value, $condition_key = false ); -
/** * Allows third party integrations to define the additional images to use for * the status. */ apply_filters( 'social_post_flow_publish_get_additional_images', $images, $status['image_additional'], $post, $service, $status ); -
social_post_flow_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( 'social_post_flow_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( 'social_post_flow_publish_get_content', $content, $post, $is_gutenberg_request_content ); -
/** * Filters the dynamic {excerpt} replacement, when a Post's status is being * built. */ apply_filters( 'social_post_flow_publish_get_excerpt', $excerpt, $post, $fallback ); -
/** * Filters the Post's Permalink, including or excluding a trailing slash, * depending on the Plugin settings */ apply_filters( 'social_post_flow_publish_get_permalink', $url, $post ); -
/** * Filters the Post's Permalink, including or excluding a trailing slash, * depending on the Plugin settings */ apply_filters( 'social_post_flow_publish_get_short_permalink', $url, $post ); -
/** * Filters the dynamic {title} replacement, when a Post's status is being * built. */ apply_filters( 'social_post_flow_publish_get_title', $title, $post ); -
/** * Filters the parsed status message text on a status. */ apply_filters( 'social_post_flow_publish_parse_text', $text, $message, $this->searches_replacements, $this->all_possible_searches_replacements, $post, $author ); -
/** * Defines the Taxonomy Term Hashtag to replace the status template tag. */ apply_filters( 'social_post_flow_publish_parse_text_term_hashtag', $term_name, $tag_params['taxonomy_term_format'], $term, $tag_params['taxonomy'], $text ); -
/** * Defines the Taxonomy Term Hashtag to replace the status template tag. */ apply_filters( 'social_post_flow_publish_parse_text_term_hashtag_retain_case', $term_name, $tag_params['taxonomy_term_format'], $term, $tag_params['taxonomy'], $text ); -
/** * Defines the Taxonomy Term Hashtag to replace the status template tag. */ apply_filters( 'social_post_flow_publish_parse_text_term_hashtag_underscore', $term_name, $tag_params['taxonomy_term_format'], $term, $tag_params['taxonomy'], $text ); -
/** * Defines the Taxonomy Term Name to replace the status template tag. */ apply_filters( 'social_post_flow_publish_parse_text_term_name', $term_name, $tag_params['taxonomy_term_format'], $term, $tag_params['taxonomy'], $text ); -
social_post_flow_publish_register_aio_seo_searches_replacements
filter Copy link Customise this hook/** * Registers any additional status message tags, and their Post data * replacements, that are supported for AIOSEO. */ apply_filters( 'social_post_flow_publish_register_aio_seo_searches_replacements', $searches_replacements, $post, $author ); -
/** * Registers any additional status message tags, and their Author data * replacements, that are supported for the given Post Author. */ apply_filters( 'social_post_flow_publish_register_author_searches_replacements', $searches_replacements, $author ); -
social_post_flow_publish_register_events_manager_searches_replacements
filter Copy link Customise this hook/** * Registers any additional status message tags, and their Post data * replacements, that are supported for Events Manager */ apply_filters( 'social_post_flow_publish_register_events_manager_searches_replacements', $searches_replacements, $post, $author ); -
social_post_flow_publish_register_featured_image_caption_searches_replacements
filter Copy link Customise this hook/** * Registers any additional status message tags, and their Post data * replacements, that are supported for the Featured Image Caption Plugin. */ apply_filters( 'social_post_flow_publish_register_featured_image_caption_searches_replacements', $searches_replacements, $post, $author ); -
social_post_flow_publish_register_modern_events_calendar_searches_replacements
filter Copy link Customise this hook/** * Registers any additional status message tags, and their Post data * replacements, that are supported for Modern Events Calendar */ apply_filters( 'social_post_flow_publish_register_modern_events_calendar_searches_replacements', $searches_replacements, $post, $author ); -
social_post_flow_publish_register_rank_math_searches_replacements
filter Copy link Customise this hook/** * Registers any additional status message tags, and their Post data * replacements, that are supported for Rank Math SEO. */ apply_filters( 'social_post_flow_publish_register_rank_math_searches_replacements', $searches_replacements, $post, $author ); -
social_post_flow_publish_register_seopress_searches_replacements
filter Copy link Customise this hook/** * Registers any additional status message tags, and their Post data * replacements, that are supported for SEOPress. */ apply_filters( 'social_post_flow_publish_register_seopress_searches_replacements', $searches_replacements, $post, $author ); -
social_post_flow_publish_register_the_events_calendar_searches_replacements
filter Copy link Customise this hook/** * Registers any additional status message tags, and their Post data * replacements, that are supported for The Events Calendar */ apply_filters( 'social_post_flow_publish_register_the_events_calendar_searches_replacements', $searches_replacements, $post, $author ); -
social_post_flow_publish_register_woocommerce_searches_replacements
filter Copy link Customise this hook/** * Registers any additional status message tags, and their Post data * replacements, that are supported for WooCommerce. */ apply_filters( 'social_post_flow_publish_register_woocommerce_searches_replacements', $searches_replacements, $post, $author ); -
social_post_flow_publish_register_yoast_seo_searches_replacements
filter Copy link Customise this hook/** * Registers any additional status message tags, and their Post data * replacements, that are supported for Yoast SEO. */ apply_filters( 'social_post_flow_publish_register_yoast_seo_searches_replacements', $searches_replacements, $post, $author ); -
/** * Define the number of seconds before the scheduled event should run, relative * to the current time. */ apply_filters( 'social_post_flow_publish_schedule_publish_delay', $delay, $post_id, $action ); -
/** * Process condition settings for Integrations / Third Party Plugins */ apply_filters( 'social_post_flow_publish_status_conditions_met', $conditions_met, $status, $post, $profile_id, $service, $action ); -
/** * Determine the statuses to send, just before they're sent. Statuses can be * added, edited and/or deleted as necessary here. */ apply_filters( 'social_post_flow_publish_statuses', $statuses, $post_id, $action ); -
/** * Number of Posts fetched per query when reposting. */ apply_filters( 'social_post_flow_repost_batch_size', 100 ); -
/** * Filters WP_Query arguments for fetching Post IDs for a given Post Type, that * are then checked to see if reposting is required. */ apply_filters( 'social_post_flow_repost_get_post_ids', $args, $post_type ); -
/** * Returns a skeleton status object for the given action, used when defining * new status(es) */ apply_filters( 'social_post_flow_settings_get_default_status', $status ); -
/** * Output Schedule settings for Integrations / Third Party Plugins */ apply_filters( 'social_post_flow_settings_get_status_row_schedule', $output, $status, $action, $post_type, $schedule ); -
/** * 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( 'social_post_flow_term', $term_name, $term->name, $tag_params['taxonomy'], $text, $tag_params['taxonomy_term_format'] ); -
/** * Filters the API access token before saving. */ apply_filters( 'social_post_flow_update_access_token', $access_token ); -
/** * Filters the key and value pair before saving to the options table. */ apply_filters( 'social_post_flow_update_option', $value, $key ); -
/** * Filters the API refresh token before saving. */ apply_filters( 'social_post_flow_update_refresh_token', $refresh_token ); -
/** * Filters Post Type Settings before they are saved. */ apply_filters( 'social_post_flow_update_settings', $settings, $type, $existing_settings ); -
/** * Filters the API token expiry timestamp token before saving. */ apply_filters( 'social_post_flow_update_token_expires', $token_expires ); -
/** * 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( 'social_post_flow_validate_check_for_duplicates_status_keys', $status_keys_to_compare ); -
/** * 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( 'the_content', $post->post_content ); -
apply_filters( "{str_replace('-','_',$this->plugin->name)}_import", $result, $import ); -
apply_filters( 'get_the_excerpt', $post->post_excerpt, $post ); -
do_action( 'social_post_flow_bulk_actions_handle_bulk_actions', $action, $post_ids ); -
do_action( "social_post_flow_bulk_actions_handle_bulk_actions_{$action}", $post_ids ); -
apply_filters( 'social_post_flow_get_authors_args', array( 'role__not_in' => 'subscriber', ) ); -
apply_filters( 'social_post_flow_publish_get_date', $date, $post );
Generated from Social Post Flow'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: