Developers

Filters

File Filter Name Description
/vendor/includes/admin/common.php
  wp_to_hootsuite_pro_get_schedule_options Defines the available schedule options for each individual status.
  wp_to_hootsuite_pro_get_schedule_relative_days Defines the available days for a status' Custom Time (Relative Format) option.
  wp_to_hootsuite_pro_get_schedule_custom_relation_options Defines the available schedule options, relative to a custom field, for each individual status.
  wp_to_hootsuite_pro_get_schedule_the_events_calendar_relation_options Defines the available schedule options, relative to The Events Calendar Plugin, for each individual status.
  wp_to_hootsuite_pro_get_post_types Defines the available Post Type Objects that can have statues defined and be sent to social media.
  wp_to_hootsuite_pro_get_excluded_post_types Defines the Post Type Objects that cannot have statues defined and not be sent to social media.
  wp_to_hootsuite_pro_get_excluded_taxonomies Defines taxonomies to exclude from the Conditions: Taxonomies dropdowns for each individual status.
  wp_to_hootsuite_pro_get_taxonomies Defines available taxonomies for the given Post Type, which are used in the Conditions: Taxonomies dropdowns for each individual status.
  wp_to_hootsuite_pro_get_all_taxonomies Defines available taxonomies, regardless of Post Type, which are used in the Conditions: Taxonomies dropdowns for each individual status.
  wp_to_hootsuite_pro_get_user_roles Defines WordPress User Roles.
  wp_to_hootsuite_pro_get_excluded_user_roles Defines WordPress User Roles to exclude from Settings screens.
  wp_to_hootsuite_pro_get_repost_frequency_units Defines available Reposting frequency units when defining Repost status(es).
  wp_to_hootsuite_pro_get_tags 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.
  wp_to_hootsuite_pro_get_post_actions Defines the Post actions which trigger status(es) to be sent to social media.
  wp_to_hootsuite_pro_get_post_actions_past_tense Defines the Post actions which trigger status(es) to be sent to social media, with labels set to the past tense.
  wp_to_hootsuite_pro_get_featured_image_options Defines the available Featured Image select dropdown options on a status, depending on the Plugin and Social Network the status message is for.
  wp_to_hootsuite_pro_get_condition_options Defines the available Options for Taxonomy Terms Conditionals.
  wp_to_hootsuite_pro_get_override_options Defines the available override options to display in the meta box for individual Posts.
  wp_to_hootsuite_pro_get_authors Defines the available override options to display in the meta box for individual Posts.
  wp_to_hootsuite_pro_get_meta_compare Defines the available WP_Query meta comparison compatible operators, used for Conditional Options on status(es).
  wp_to_hootsuite_pro_get_order_by Defines the available WP_Query compatible order by options.
  wp_to_hootsuite_pro_get_order Defines the available WP_Query compatible order options.
  wp_to_hootsuite_pro_get_tags_excluded_from_character_limit 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).
  wp_to_hootsuite_pro_get_character_limits Defines the character limits for status messages for each social network.
  wp_to_hootsuite_pro_get_character_limit Defines the character limit for the given social media service.
  wp_to_hootsuite_pro_get_transient_expiration_time Defines the number of seconds before expiring transients.
  wp_to_hootsuite_pro_maybe_remove_profiles_by_role Defines the number of seconds before expiring transients.
  wp_to_hootsuite_pro_maybe_remove_post_types_by_role Defines the number of seconds before expiring transients.
  wp_to_hootsuite_pro_get_opengraph_seo_plugins Defines the Plugins that output OpenGraph metadata on Posts, Pages and Custom Post Types.
  wp_to_hootsuite_pro_get_log_filters Defines the registered filters that can be used on the Log WP_List_Tables.
  wp_to_hootsuite_pro_common_convert_wordpress_gmt_offset_to_offset_value Converts WordPress' GMT Offset (e.g. -5, +3.3) to an offset value compatible with WordPress' DateTime object (e.g. -0500, +0330)
/vendor/includes/admin/repost.php
  wp_to_hootsuite_pro_repost_get_post_ids Filters WP_Query arguments for fetching Post IDs for a given Post Type, that are then checked to see if reposting is required.
/vendor/includes/admin/settings.php
  wp_to_hootsuite_pro_get_settings Filters Post Type Settings before they are returned.
  wp_to_hootsuite_pro_update_settings Filters Post Type Settings before they are saved.
  wp_to_hootsuite_pro_default_installation_settings Filters Default Post Type Settings used on Plugin Activation before they are returned.
  wp_to_hootsuite_pro_settings_validate_status Filters status settings during validation, allowing them to be changed.
  wp_to_hootsuite_pro_update_access_token Filters the API access token before saving.
  wp_to_hootsuite_pro_update_refresh_token Filters the API refresh token before saving.
  wp_to_hootsuite_pro_update_token_expires Filters the API token expiry timestamp token before saving.
  wp_to_hootsuite_pro_update_option Filters the key and value pair before saving to the options table.
  wp_to_hootsuite_pro_get_all Filters the keys that are used to store Plugin data in the options table.
/vendor/includes/admin/log.php
  wp_to_hootsuite_pro_get_log Filters the log entries before output.
/vendor/includes/admin/post.php
  wp_to_hootsuite_pro_get_post_meta Filters Status Settings for a specific Post.
/vendor/includes/admin/publish.php
  wp_to_hootsuite_pro_publish_custom_fields_conditions_met Determine if a statuses meta conditionals have been met, where the conditional is not a plugin standard option.
  wp_to_hootsuite_pro_publish_statuses Determine the statuses to send, just before they're sent. Statuses can be added, edited and/or deleted as necessary here.
  wp_to_hootsuite_pro_publish_build_args Determine the standardised arguments array to send via the API for a status message's settings.
  wp_to_hootsuite_pro_publish_parse_text_term_name Defines the Taxonomy Term Name to replace the status template tag.
  wp_to_hootsuite_pro_publish_parse_text_term_hashtag Defines the Taxonomy Term Hashtag to replace the status template tag.
  wp_to_hootsuite_pro_term 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.
  wp_to_hootsuite_pro_publish_parse_text Filters the parsed status message text on a status.
  wp_to_hootsuite_pro_publish_get_all_possible_searches_replacements Registers any additional status message tags, and their Post data replacements, that are supported.
  wp_to_hootsuite_pro_publish_register_post_searches_replacements Registers any additional status message tags, and their Post data replacements, that are supported for the given Post.
  wp_to_hootsuite_pro_publish_register_author_searches_replacements Registers any additional status message tags, and their Author data replacements, that are supported for the given Post Author.
  wp_to_hootsuite_pro_publish_register_the_events_calendar_searches_replacements Registers any additional status message tags, and their Post data replacements, that are supported for The Events Calendar
  wp_to_hootsuite_pro_publish_register_woocommerce_searches_replacements Registers any additional status message tags, and their Post data replacements, that are supported for The Events Calendar
  wp_to_hootsuite_pro_publish_register_yoast_seo_searches_replacements Registers any additional status message tags, and their Post data replacements, that are supported for Yoast SEO
  wp_to_hootsuite_pro_publish_register_aio_seo_searches_replacements Registers any additional status message tags, and their Post data replacements, that are supported for AIOSEO.
  wp_to_hootsuite_pro_publish_get_title Filters the dynamic {title} replacement, when a Post's status is being built.
  wp_to_hootsuite_pro_publish_get_excerpt Filters the dynamic {excerpt} replacement, when a Post's status is being built.
  wp_to_hootsuite_pro_publish_get_content Filters the dynamic {content} replacement, when a Post's status is being built.
  wp_to_hootsuite_pro_publish_apply_word_limit Filters the character word text.
  wp_to_hootsuite_pro_publish_apply_character_limit Filters the character limited text.
/vendor/includes/admin/validation.php
  wp_to_hootsuite_pro_validate_check_for_duplicates_status_keys 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.
/vendor/includes/admin/bulk-actions.php
  wp_to_hootsuite_pro_bulk_actions_register_bulk_actions Defines Bulk Actions to be added to the select dropdown on WP_List_Tables.
/vendor/includes/admin/notices.php
  wp_to_hootsuite_pro_notices_get_success_notices Filters the success notices to return.
  wp_to_hootsuite_pro_notices_get_error_notices Filters the error notices to return.
  wp_to_hootsuite_pro_notices_get_notices Filters the success and error notices to return.
  wp_to_hootsuite_pro_notices_save Filters the success and error notices to save.
/includes/admin/owly-api.php
  wp_to_hootsuite_pro_api_request Defines the number of seconds before timing out a request to the Owly API.
/includes/admin/hootsuite-api.php
  wp_to_hootsuite_pro_api_request Defines the number of seconds before timing out a request to the Hootsuite API.

wp_to_hootsuite_pro_get_schedule_options /vendor/includes/admin/common.php::137

Overview

Defines the available schedule options for each individual status.

Parameters

Parameter Type Description
$schedule array Schedule Options

Usage

add_filter( 'wp_to_hootsuite_pro_get_schedule_options', function( $schedule ) {
	// ... your code here
	// Return value
	return $schedule;
}, 10, 1 );


wp_to_hootsuite_pro_get_schedule_relative_days /vendor/includes/admin/common.php::171

Overview

Defines the available days for a status' Custom Time (Relative Format) option.

Parameters

Parameter Type Description
$days array Days

Usage

add_filter( 'wp_to_hootsuite_pro_get_schedule_relative_days', function( $days ) {
	// ... your code here
	// Return value
	return $days;
}, 10, 1 );


wp_to_hootsuite_pro_get_schedule_custom_relation_options /vendor/includes/admin/common.php::200

Overview

Defines the available schedule options, relative to a custom field, for each individual status.

Parameters

Parameter Type Description
$schedule array Schedule Options

Usage

add_filter( 'wp_to_hootsuite_pro_get_schedule_custom_relation_options', function( $schedule ) {
	// ... your code here
	// Return value
	return $schedule;
}, 10, 1 );


wp_to_hootsuite_pro_get_schedule_the_events_calendar_relation_options /vendor/includes/admin/common.php::229

Overview

Defines the available schedule options, relative to The Events Calendar Plugin, for each individual status.

Parameters

Parameter Type Description
$schedule array Schedule Options

Usage

add_filter( 'wp_to_hootsuite_pro_get_schedule_the_events_calendar_relation_options', function( $schedule ) {
	// ... your code here
	// Return value
	return $schedule;
}, 10, 1 );


wp_to_hootsuite_pro_get_post_types /vendor/includes/admin/common.php::265

Overview

Defines the available Post Type Objects that can have statues defined and be sent to social media.

Parameters

Parameter Type Description
$types array Post Types

Usage

add_filter( 'wp_to_hootsuite_pro_get_post_types', function( $types ) {
	// ... your code here
	// Return value
	return $types;
}, 10, 1 );


wp_to_hootsuite_pro_get_excluded_post_types /vendor/includes/admin/common.php::296

Overview

Defines the Post Type Objects that cannot have statues defined and not be sent to social media.

Parameters

Parameter Type Description
$types array Post Types

Usage

add_filter( 'wp_to_hootsuite_pro_get_excluded_post_types', function( $types ) {
	// ... your code here
	// Return value
	return $types;
}, 10, 1 );


wp_to_hootsuite_pro_get_excluded_taxonomies /vendor/includes/admin/common.php::325

Overview

Defines taxonomies to exclude from the Conditions: Taxonomies dropdowns for each individual status.

Parameters

Parameter Type Description
$taxonomies array Excluded Taxonomies

Usage

add_filter( 'wp_to_hootsuite_pro_get_excluded_taxonomies', function( $taxonomies ) {
	// ... your code here
	// Return value
	return $taxonomies;
}, 10, 1 );


wp_to_hootsuite_pro_get_taxonomies /vendor/includes/admin/common.php::364

Overview

Defines available taxonomies for the given Post Type, which are used in the Conditions: Taxonomies dropdowns for each individual status.

Parameters

Parameter Type Description
$taxonomies array Taxonomies
$post_type string Post Type

Usage

add_filter( 'wp_to_hootsuite_pro_get_taxonomies', function( $taxonomies, $post_type ) {
	// ... your code here
	// Return value
	return $taxonomies;
}, 10, 2 );


wp_to_hootsuite_pro_get_all_taxonomies /vendor/includes/admin/common.php::401

Overview

Defines available taxonomies, regardless of Post Type, which are used in the Conditions: Taxonomies dropdowns for each individual status.

Parameters

Parameter Type Description
$taxonomies array Taxonomies

Usage

add_filter( 'wp_to_hootsuite_pro_get_all_taxonomies', function( $taxonomies ) {
	// ... your code here
	// Return value
	return $taxonomies;
}, 10, 1 );


wp_to_hootsuite_pro_get_user_roles /vendor/includes/admin/common.php::435

Overview

Defines WordPress User Roles.

Parameters

Parameter Type Description
$roles array WordPress User Roles

Usage

add_filter( 'wp_to_hootsuite_pro_get_user_roles', function( $roles ) {
	// ... your code here
	// Return value
	return $roles;
}, 10, 1 );


wp_to_hootsuite_pro_get_excluded_user_roles /vendor/includes/admin/common.php::463

Overview

Defines WordPress User Roles to exclude from Settings screens.

Parameters

Parameter Type Description
$excluded_roles array Excluded WordPress User Roles

Usage

add_filter( 'wp_to_hootsuite_pro_get_excluded_user_roles', function( $excluded_roles ) {
	// ... your code here
	// Return value
	return $excluded_roles;
}, 10, 1 );


wp_to_hootsuite_pro_get_repost_frequency_units /vendor/includes/admin/common.php::493

Overview

Defines available Reposting frequency units when defining Repost status(es).

Parameters

Parameter Type Description
$units array Repost Frequency Units

Usage

add_filter( 'wp_to_hootsuite_pro_get_repost_frequency_units', function( $units ) {
	// ... your code here
	// Return value
	return $units;
}, 10, 1 );


wp_to_hootsuite_pro_get_tags /vendor/includes/admin/common.php::651

Overview

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.

Parameters

Parameter Type Description
$tags array Dynamic Status Tags
$post_type string Post Type

Usage

add_filter( 'wp_to_hootsuite_pro_get_tags', function( $tags, $post_type ) {
	// ... your code here
	// Return value
	return $tags;
}, 10, 2 );


wp_to_hootsuite_pro_get_post_actions /vendor/includes/admin/common.php::682

Overview

Defines the Post actions which trigger status(es) to be sent to social media.

Parameters

Parameter Type Description
$actions array Post Actions

Usage

add_filter( 'wp_to_hootsuite_pro_get_post_actions', function( $actions ) {
	// ... your code here
	// Return value
	return $actions;
}, 10, 1 );


wp_to_hootsuite_pro_get_post_actions_past_tense /vendor/includes/admin/common.php::714

Overview

Defines the Post actions which trigger status(es) to be sent to social media, with labels set to the past tense.

Parameters

Parameter Type Description
$actions array Post Actions

Usage

add_filter( 'wp_to_hootsuite_pro_get_post_actions_past_tense', function( $actions ) {
	// ... your code here
	// Return value
	return $actions;
}, 10, 1 );


Overview

Defines the available Featured Image select dropdown options on a status, depending on the Plugin and Social Network the status message is for.

Parameters

Parameter Type Description
$options array Featured Image Dropdown Options
$network string Social Network

Usage

add_filter( 'wp_to_hootsuite_pro_get_featured_image_options', function( $options, $network ) {
	// ... your code here
	// Return value
	return $options;
}, 10, 2 );


wp_to_hootsuite_pro_get_condition_options /vendor/includes/admin/common.php::847

Overview

Defines the available Options for Taxonomy Terms Conditionals.

Parameters

Parameter Type Description
$options array Condition Options

Usage

add_filter( 'wp_to_hootsuite_pro_get_condition_options', function( $options ) {
	// ... your code here
	// Return value
	return $options;
}, 10, 1 );


wp_to_hootsuite_pro_get_override_options /vendor/includes/admin/common.php::877

Overview

Defines the available override options to display in the meta box for individual Posts.

Parameters

Parameter Type Description
$options array Condition Options

Usage

add_filter( 'wp_to_hootsuite_pro_get_override_options', function( $options ) {
	// ... your code here
	// Return value
	return $options;
}, 10, 1 );


wp_to_hootsuite_pro_get_authors /vendor/includes/admin/common.php::911

Overview

Defines the available override options to display in the meta box for individual Posts.

Parameters

Parameter Type Description
$authors array WordPress Users

Usage

add_filter( 'wp_to_hootsuite_pro_get_authors', function( $authors ) {
	// ... your code here
	// Return value
	return $authors;
}, 10, 1 );


wp_to_hootsuite_pro_get_meta_compare /vendor/includes/admin/common.php::946

Overview

Defines the available WP_Query meta comparison compatible operators, used for Conditional Options on status(es).

Parameters

Parameter Type Description
$compare array Meta Comparison Operators

Usage

add_filter( 'wp_to_hootsuite_pro_get_meta_compare', function( $comparison_operators ) {
	// ... your code here
	// Return value
	return $comparison_operators;
}, 10, 1 );


wp_to_hootsuite_pro_get_order_by /vendor/includes/admin/common.php::981

Overview

Defines the available WP_Query compatible order by options.

Parameters

Parameter Type Description
$order_by array Order By options

Usage

add_filter( 'wp_to_hootsuite_pro_get_order_by', function( $order_by ) {
	// ... your code here
	// Return value
	return $order_by;
}, 10, 1 );


wp_to_hootsuite_pro_get_order /vendor/includes/admin/common.php::1010

Overview

Defines the available WP_Query compatible order options.

Parameters

Parameter Type Description
$order array Order options

Usage

add_filter( 'wp_to_hootsuite_pro_get_order', function( $order ) {
	// ... your code here
	// Return value
	return $order;
}, 10, 1 );


wp_to_hootsuite_pro_get_tags_excluded_from_character_limit /vendor/includes/admin/common.php::1042

Overview

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).

Parameters

Parameter Type Description
$tags array Tags

Usage

add_filter( 'wp_to_hootsuite_pro_get_tags_excluded_from_character_limit', function( $tags ) {
	// ... your code here
	// Return value
	return $tags;
}, 10, 1 );


wp_to_hootsuite_pro_get_character_limits /vendor/includes/admin/common.php::1074

Overview

Defines the character limits for status messages for each social network.

Parameters

Parameter Type Description
$character_limits array Character Limits

Usage

add_filter( 'wp_to_hootsuite_pro_get_character_limits', function( $character_limits ) {
	// ... your code here
	// Return value
	return $character_limits;
}, 10, 1 );


wp_to_hootsuite_pro_get_character_limit /vendor/includes/admin/common.php::1113

Overview

Defines the character limit for the given social media service.

Parameters

Parameter Type Description
$character_limit int Character Limit
$service string Social Media Service

Usage

add_filter( 'wp_to_hootsuite_pro_get_character_limit', function( $character_limit, $service ) {
	// ... your code here
	// Return value
	return $character_limit;
}, 10, 2 );


wp_to_hootsuite_pro_get_transient_expiration_time /vendor/includes/admin/common.php::1139

Overview

Defines the number of seconds before expiring transients.

Parameters

Parameter Type Description
$expiration_time int Transient Expiration Time, in seconds

Usage

add_filter( 'wp_to_hootsuite_pro_get_transient_expiration_time', function( $expiration_time ) {
	// ... your code here
	// Return value
	return $expiration_time;
}, 10, 1 );


wp_to_hootsuite_pro_maybe_remove_profiles_by_role /vendor/includes/admin/common.php::1192

Overview

Defines the number of seconds before expiring transients.

Parameters

Parameter Type Description
$arr array Post Type or Post Settings
$role string WordPress Role Name

Usage

add_filter( 'wp_to_hootsuite_pro_maybe_remove_profiles_by_role', function( $arr, $role ) {
	// ... your code here
	// Return value
	return $arr;
}, 10, 2 );


wp_to_hootsuite_pro_maybe_remove_post_types_by_role /vendor/includes/admin/common.php::1237

Overview

Defines the number of seconds before expiring transients.

Parameters

Parameter Type Description
$post_types array Post Types
$role string WordPress Role Name

Usage

add_filter( 'wp_to_hootsuite_pro_maybe_remove_post_types_by_role', function( $post_types, $role ) {
	// ... your code here
	// Return value
	return $post_types;
}, 10, 2 );


wp_to_hootsuite_pro_get_opengraph_seo_plugins /vendor/includes/admin/common.php::1268

Overview

Defines the Plugins that output OpenGraph metadata on Posts, Pages and Custom Post Types.

Parameters

Parameter Type Description
$plugins array Plugins

Usage

add_filter( 'wp_to_hootsuite_pro_get_opengraph_seo_plugins', function( $plugins ) {
	// ... your code here
	// Return value
	return $plugins;
}, 10, 1 );


wp_to_hootsuite_pro_get_log_filters /vendor/includes/admin/common.php::1302

Overview

Defines the registered filters that can be used on the Log WP_List_Tables.

Parameters

Parameter Type Description
$filters array Filters

Usage

add_filter( 'wp_to_hootsuite_pro_get_log_filters', function( $filters ) {
	// ... your code here
	// Return value
	return $filters;
}, 10, 1 );


wp_to_hootsuite_pro_common_convert_wordpress_gmt_offset_to_offset_value /vendor/includes/admin/common.php::1360

Overview

Converts WordPress' GMT Offset (e.g. -5, +3.3) to an offset value compatible with WordPress' DateTime object (e.g. -0500, +0330)

Parameters

Parameter Type Description
$text string Parsed Text

Usage

add_filter( 'wp_to_hootsuite_pro_common_convert_wordpress_gmt_offset_to_offset_value', function( $gmt_offset ) {
	// ... your code here
	// Return value
	return $gmt_offset;
}, 10, 1 );


wp_to_hootsuite_pro_repost_get_post_ids /vendor/includes/admin/repost.php::225

Overview

Filters WP_Query arguments for fetching Post IDs for a given Post Type, that are then checked to see if reposting is required.

Parameters

Parameter Type Description
$args array WP_Query Arguments
$post_type string Post Type

Usage

add_filter( 'wp_to_hootsuite_pro_repost_get_post_ids', function( $args, $post_type ) {
	// ... your code here
	// Return value
	return $args;
}, 10, 2 );


wp_to_hootsuite_pro_get_settings /vendor/includes/admin/settings.php::275

Overview

Filters Post Type Settings before they are returned.

Parameters

Parameter Type Description
$settings array Settings
$type string Post Type

Usage

add_filter( 'wp_to_hootsuite_pro_get_settings', function( $settings, $type ) {
	// ... your code here
	// Return value
	return $settings;
}, 10, 2 );


wp_to_hootsuite_pro_update_settings /vendor/includes/admin/settings.php::304

Overview

Filters Post Type Settings before they are saved.

Parameters

Parameter Type Description
$settings array Settings
$type string Post Type

Usage

add_filter( 'wp_to_hootsuite_pro_update_settings', function( $settings, $type ) {
	// ... your code here
	// Return value
	return $settings;
}, 10, 2 );


wp_to_hootsuite_pro_default_installation_settings /vendor/includes/admin/settings.php::409

Overview

Filters Default Post Type Settings used on Plugin Activation before they are returned.

Parameters

Parameter Type Description
$settings array Settings
$type string Post Type

Usage

add_filter( 'wp_to_hootsuite_pro_default_installation_settings', function( $settings ) {
	// ... your code here
	// Return value
	return $settings;
}, 10, 1 );


wp_to_hootsuite_pro_settings_validate_status /vendor/includes/admin/settings.php::643

Overview

Filters status settings during validation, allowing them to be changed.

Parameters

Parameter Type Description
$status array Status

Usage

add_filter( 'wp_to_hootsuite_pro_settings_validate_status', function( $status ) {
	// ... your code here
	// Return value
	return $status;
}, 10, 1 );


wp_to_hootsuite_pro_update_access_token /vendor/includes/admin/settings.php::710

Overview

Filters the API access token before saving.

Parameters

Parameter Type Description
$access_token array Access Token

Usage

add_filter( 'wp_to_hootsuite_pro_update_access_token', function( $access_token ) {
	// ... your code here
	// Return value
	return $access_token;
}, 10, 1 );


wp_to_hootsuite_pro_update_refresh_token /vendor/includes/admin/settings.php::761

Overview

Filters the API refresh token before saving.

Parameters

Parameter Type Description
$refresh_token array Refresh Token

Usage

add_filter( 'wp_to_hootsuite_pro_update_refresh_token', function( $refresh_token ) {
	// ... your code here
	// Return value
	return $refresh_token;
}, 10, 1 );


wp_to_hootsuite_pro_update_token_expires /vendor/includes/admin/settings.php::812

Overview

Filters the API token expiry timestamp token before saving.

Parameters

Parameter Type Description
$token_expires array Token Expiry

Usage

add_filter( 'wp_to_hootsuite_pro_update_token_expires', function( $token_expires ) {
	// ... your code here
	// Return value
	return $token_expires;
}, 10, 1 );


wp_to_hootsuite_pro_update_option /vendor/includes/admin/settings.php::896

Overview

Filters the key and value pair before saving to the options table.

Parameters

Parameter Type Description
$value string Option Value
$key string Option Key

Usage

add_filter( 'wp_to_hootsuite_pro_update_option', function( $value, $key ) {
	// ... your code here
	// Return value
	return $value;
}, 10, 2 );


wp_to_hootsuite_pro_get_all /vendor/includes/admin/settings.php::947

Overview

Filters the keys that are used to store Plugin data in the options table.

Parameters

Parameter Type Description
$keys array Option Keys
$post_types array Post Types

Usage

add_filter( 'wp_to_hootsuite_pro_get_all', function( $keys, $post_types ) {
	// ... your code here
	// Return value
	return $keys;
}, 10, 2 );


wp_to_hootsuite_pro_get_log /vendor/includes/admin/log.php::351

Overview

Filters the log entries before output.

Parameters

Parameter Type Description
$log array Post Log
$post_id int Post ID

Usage

add_filter( 'wp_to_hootsuite_pro_get_log', function( $log, $post_id ) {
	// ... your code here
	// Return value
	return $log;
}, 10, 2 );


wp_to_hootsuite_pro_get_post_meta /vendor/includes/admin/post.php::442

Overview

Filters Status Settings for a specific Post.

Parameters

Parameter Type Description
$settings array Post Settings
$post_id int Post ID

Usage

add_filter( 'wp_to_hootsuite_pro_get_post_meta', function( $settings, $post_id ) {
	// ... your code here
	// Return value
	return $settings;
}, 10, 2 );


wp_to_hootsuite_pro_publish_custom_fields_conditions_met /vendor/includes/admin/publish.php::823

Overview

Determine if a statuses meta conditionals have been met, where the conditional is not a plugin standard option.

Parameters

Parameter Type Description
$conditions_met bool Flag to denote if conditions have been met for the status to be sent
$custom_field['compare'] string Comparison Operator
$status array Status Message Settings

Usage

add_filter( 'wp_to_hootsuite_pro_publish_custom_fields_conditions_met', function( $conditions_met, $custom_field['compare'], $status ) {
	// ... your code here
	// Return value
	return $conditions_met;
}, 10, 3 );


wp_to_hootsuite_pro_publish_statuses /vendor/includes/admin/publish.php::924

Overview

Determine the statuses to send, just before they're sent. Statuses can be added, edited and/or deleted as necessary here.

Parameters

Parameter Type Description
$statuses array Statuses to be sent to social media
$post_id int Post ID
$action string Action (publish, update, repost)

Usage

add_filter( 'wp_to_hootsuite_pro_publish_statuses', function( $statuses, $post_id, $action ) {
	// ... your code here
	// Return value
	return $statuses;
}, 10, 3 );


wp_to_hootsuite_pro_publish_build_args /vendor/includes/admin/publish.php::1317

Overview

Determine the standardised arguments array to send via the API for a status message's settings.

Parameters

Parameter Type Description
$args array API standardised arguments.
$post WP_Post WordPress Post
$profile_id string Social Media Profile ID
$service string Social Media Service
$status array Parsed Status Message Settings
$action string Action (publish|update|repost|bulk_publish)

Usage

add_filter( 'wp_to_hootsuite_pro_publish_build_args', function( $args, $post, $profile_id, $service, $status, $action ) {
	// ... your code here
	// Return value
	return $args;
}, 10, 6 );


wp_to_hootsuite_pro_publish_parse_text_term_name /vendor/includes/admin/publish.php::1539

Overview

Defines the Taxonomy Term Name to replace the status template tag.

Parameters

Parameter Type Description
$term_name string Term Name
$tag_params['taxonomy_term_format'] string Term
$term WP_Term Term
$tag_params['taxonomy'] string Taxonomy
$text string Status Text

Usage

add_filter( 'wp_to_hootsuite_pro_publish_parse_text_term_name', function( $term_name, $tag_params['taxonomy_term_format'], $term, $tag_params['taxonomy'], $text ) {
	// ... your code here
	// Return value
	return $term_name;
}, 10, 5 );


wp_to_hootsuite_pro_publish_parse_text_term_hashtag /vendor/includes/admin/publish.php::1561

Overview

Defines the Taxonomy Term Hashtag to replace the status template tag.

Parameters

Parameter Type Description
$term_name string Term Name
$tag_params['taxonomy_term_format'] string Term
$term WP_Term Term
$tag_params['taxonomy'] string Taxonomy
$text string Status Text

Usage

add_filter( 'wp_to_hootsuite_pro_publish_parse_text_term_hashtag', function( $term_name, $tag_params['taxonomy_term_format'], $term, $tag_params['taxonomy'], $text ) {
	// ... your code here
	// Return value
	return $term_name;
}, 10, 5 );


wp_to_hootsuite_pro_term /vendor/includes/admin/publish.php::1578

Overview

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.

Parameters

Parameter Type Description
$term_name string Term Name
$term->name string Term Name
$tag_params['taxonomy'] string Taxonomy
$text string Status Text
$tag_params['taxonomy_term_format'] string Term Format

Usage

add_filter( 'wp_to_hootsuite_pro_term', function( $term_name, $term->name, $tag_params['taxonomy'], $text, $tag_params['taxonomy_term_format'] ) {
	// ... your code here
	// Return value
	return $term_name;
}, 10, 5 );


wp_to_hootsuite_pro_publish_parse_text /vendor/includes/admin/publish.php::1624

Overview

Filters the parsed status message text on a status.

Parameters

Parameter Type Description
$text string Parsed Text, no Tags
$message string Unparsed Text with Tags
$searches_replacements array Specific Tag Search and Replacements for the given Text
$all_possible_searches_replacements array All Registered Tag Search and Replacements
$post WP_Post WordPress Post
$author WP_User WordPress User (Author)

Usage

add_filter( 'wp_to_hootsuite_pro_publish_parse_text', function( $text, $message, $searches_replacements, $all_possible_searches_replacements, $post, $author ) {
	// ... your code here
	// Return value
	return $text;
}, 10, 6 );


wp_to_hootsuite_pro_publish_get_all_possible_searches_replacements /vendor/includes/admin/publish.php::1687

Overview

Registers any additional status message tags, and their Post data replacements, that are supported.

Parameters

Parameter Type Description
$searches_replacements array Registered Supported Tags and their Replacements
$post WP_Post WordPress Post
$author WP_User WordPress User (Author of the Post)

Usage

add_filter( 'wp_to_hootsuite_pro_publish_get_all_possible_searches_replacements', function( $searches_replacements, $post, $author ) {
	// ... your code here
	// Return value
	return $searches_replacements;
}, 10, 3 );


wp_to_hootsuite_pro_publish_register_post_searches_replacements /vendor/includes/admin/publish.php::1786

Overview

Registers any additional status message tags, and their Post data replacements, that are supported for the given Post.

Parameters

Parameter Type Description
$searches_replacements array Registered Supported Tags and their Replacements
$post WP_Post WordPress Post
$taxonomies array Post Taxonomies

Usage

add_filter( 'wp_to_hootsuite_pro_publish_register_post_searches_replacements', function( $searches_replacements, $post, $taxonomies ) {
	// ... your code here
	// Return value
	return $searches_replacements;
}, 10, 3 );


wp_to_hootsuite_pro_publish_register_author_searches_replacements /vendor/includes/admin/publish.php::1754

Overview

Registers any additional status message tags, and their Author data replacements, that are supported for the given Post Author.

Parameters

Parameter Type Description
$searches_replacements array Registered Supported Tags and their Replacements
$author WP_User WordPress Post Author

Usage

add_filter( 'wp_to_hootsuite_pro_publish_register_author_searches_replacements', function( $searches_replacements, $author ) {
	// ... your code here
	// Return value
	return $searches_replacements;
}, 10, 2 );


wp_to_hootsuite_pro_publish_register_the_events_calendar_searches_replacements /vendor/includes/admin/publish.php::1822

Overview

Registers any additional status message tags, and their Post data replacements, that are supported for The Events Calendar

Parameters

Parameter Type Description
$searches_replacements array Registered Supported Tags and their Replacements
$post WP_Post WordPress Post
$author WP_User WordPress User (Author of the Post)

Usage

add_filter( 'wp_to_hootsuite_pro_publish_register_the_events_calendar_searches_replacements', function( $searches_replacements, $post, $author ) {
	// ... your code here
	// Return value
	return $searches_replacements;
}, 10, 3 );


wp_to_hootsuite_pro_publish_register_woocommerce_searches_replacements /vendor/includes/admin/publish.php::1865

Overview

Registers any additional status message tags, and their Post data replacements, that are supported for The Events Calendar

Parameters

Parameter Type Description
$searches_replacements array Registered Supported Tags and their Replacements
$post WP_Post WordPress Post
$author WP_User WordPress User (Author of the Post)

Usage

add_filter( 'wp_to_hootsuite_pro_publish_register_woocommerce_searches_replacements', function( $searches_replacements, $post, $author ) {
	// ... your code here
	// Return value
	return $searches_replacements;
}, 10, 3 );


wp_to_hootsuite_pro_publish_register_yoast_seo_searches_replacements /vendor/includes/admin/publish.php::1894

Overview

Registers any additional status message tags, and their Post data replacements, that are supported for Yoast SEO

Parameters

Parameter Type Description
$searches_replacements array Registered Supported Tags and their Replacements
$post WP_Post WordPress Post

Usage

add_filter( 'wp_to_hootsuite_pro_publish_register_yoast_seo_searches_replacements', function( $searches_replacements, $post ) {
	// ... your code here
	// Return value
	return $searches_replacements;
}, 10, 2 );


wp_to_hootsuite_pro_publish_register_aio_seo_searches_replacements /vendor/includes/admin/publish.php::1939

Overview

Registers any additional status message tags, and their Post data replacements, that are supported for AIOSEO.

Parameters

Parameter Type Description
$searches_replacements array Registered Supported Tags and their Replacements
$post WP_Post WordPress Post

Usage

add_filter( 'wp_to_hootsuite_pro_publish_register_aio_seo_searches_replacements', function( $searches_replacements, $post ) {
	// ... your code here
	// Return value
	return $searches_replacements;
}, 10, 2 );


wp_to_hootsuite_pro_publish_get_title /vendor/includes/admin/publish.php::2010

Overview

Filters the dynamic {title} replacement, when a Post's status is being built.

Parameters

Parameter Type Description
$title string Post Title
$post WP_Post WordPress Post

Usage

add_filter( 'wp_to_hootsuite_pro_publish_get_title', function( $title, $post ) {
	// ... your code here
	// Return value
	return $title;
}, 10, 2 );


wp_to_hootsuite_pro_publish_get_excerpt /vendor/includes/admin/publish.php::2056

Overview

Filters the dynamic {excerpt} replacement, when a Post's status is being built.

Parameters

Parameter Type Description
$excerpt string Post Excerpt
$post WP_Post WordPress Post

Usage

add_filter( 'wp_to_hootsuite_pro_publish_get_excerpt', function( $excerpt, $post ) {
	// ... your code here
	// Return value
	return $excerpt;
}, 10, 2 );


wp_to_hootsuite_pro_publish_get_content /vendor/includes/admin/publish.php::2114

Overview

Filters the dynamic {content} replacement, when a Post's status is being built.

Parameters

Parameter Type Description
$content string Post Content
$post WP_Post WordPress Post
$is_gutenberg_post_content bool Is Gutenberg Post Content

Usage

add_filter( 'wp_to_hootsuite_pro_publish_get_content', function( $content, $post, $is_gutenberg_post_content ) {
	// ... your code here
	// Return value
	return $content;
}, 10, 3 );


wp_to_hootsuite_pro_publish_apply_word_limit /vendor/includes/admin/publish.php::2173

Overview

Filters the character word text.

Parameters

Parameter Type Description
$text string Text, with word limit applied
$word_limit int Word Limit used

Usage

add_filter( 'wp_to_hootsuite_pro_publish_apply_word_limit', function( $text, $word_limit ) {
	// ... your code here
	// Return value
	return $text;
}, 10, 2 );


wp_to_hootsuite_pro_publish_apply_character_limit /vendor/includes/admin/publish.php::2212

Overview

Filters the character limited text.

Parameters

Parameter Type Description
$text string Text, with character limit applied
$character_limit int Character Limit used

Usage

add_filter( 'wp_to_hootsuite_pro_publish_apply_character_limit', function( $text, $character_limit ) {
	// ... your code here
	// Return value
	return $text;
}, 10, 2 );


wp_to_hootsuite_pro_validate_check_for_duplicates_status_keys /vendor/includes/admin/validation.php::187

Overview

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.

Parameters

Parameter Type Description
$status_keys_to_compare array Status Key Values to Compare

Usage

add_filter( 'wp_to_hootsuite_pro_validate_check_for_duplicates_status_keys', function( $status_keys_to_compare ) {
	// ... your code here
	// Return value
	return $status_keys_to_compare;
}, 10, 1 );


wp_to_hootsuite_pro_bulk_actions_register_bulk_actions /vendor/includes/admin/bulk-actions.php::82

Overview

Defines Bulk Actions to be added to the select dropdown on WP_List_Tables.

Parameters

Parameter Type Description
$bulk_actions array Plugin Specific Bulk Actions
$actions string Existing Registered Bulk Actions (excluding Plugin Specific Bulk Actions)

Usage

add_filter( 'wp_to_hootsuite_pro_bulk_actions_register_bulk_actions', function( $bulk_actions, $actions ) {
	// ... your code here
	// Return value
	return $bulk_actions;
}, 10, 2 );


wp_to_hootsuite_pro_notices_get_success_notices /vendor/includes/admin/notices.php::126

Overview

Filters the success notices to return.

Parameters

Parameter Type Description
$success_notices array Success Notices
$notices object Success and Error Notices

Usage

add_filter( 'wp_to_hootsuite_pro_notices_get_success_notices', function( $success_notices, $notices ) {
	// ... your code here
	// Return value
	return $success_notices;
}, 10, 2 );


wp_to_hootsuite_pro_notices_get_error_notices /vendor/includes/admin/notices.php::197

Overview

Filters the error notices to return.

Parameters

Parameter Type Description
$error_notices array Error Notices
$notices object Success and Error Notices

Usage

add_filter( 'wp_to_hootsuite_pro_notices_get_error_notices', function( $error_notices, $notices ) {
	// ... your code here
	// Return value
	return $error_notices;
}, 10, 2 );


wp_to_hootsuite_pro_notices_get_notices /vendor/includes/admin/notices.php::255

Overview

Filters the success and error notices to return.

Parameters

Parameter Type Description
$notices array Success and Error Notices

Usage

add_filter( 'wp_to_hootsuite_pro_notices_get_notices', function( $notices ) {
	// ... your code here
	// Return value
	return $notices;
}, 10, 1 );


wp_to_hootsuite_pro_notices_save /vendor/includes/admin/notices.php::295

Overview

Filters the success and error notices to save.

Parameters

Parameter Type Description
$notices array Success and Error Notices

Usage

add_filter( 'wp_to_hootsuite_pro_notices_save', function( $notices ) {
	// ... your code here
	// Return value
	return $notices;
}, 10, 1 );


wp_to_hootsuite_pro_api_request /includes/admin/owly-api.php::114

Overview

Defines the number of seconds before timing out a request to the Owly API.

Parameters

Parameter Type Description
$timeout int Timeout, in seconds

Usage

add_filter( 'wp_to_hootsuite_pro_api_request', function( $timeout ) {
	// ... your code here
	// Return value
	return $timeout;
}, 10, 1 );


wp_to_hootsuite_pro_api_request /includes/admin/hootsuite-api.php::611

Overview

Defines the number of seconds before timing out a request to the Hootsuite API.

Parameters

Parameter Type Description
$timeout int Timeout, in seconds

Usage

add_filter( 'wp_to_hootsuite_pro_api_request', function( $timeout ) {
	// ... your code here
	// Return value
	return $timeout;
}, 10, 1 );


Actions

File Filter Name Description
/vendor/includes/admin/admin.php
  wp_to_hootsuite_pro_admin_menu
/vendor/includes/admin/notices.php
  wp_to_hootsuite_pro_notices_delete_notices

wp_to_hootsuite_pro_admin_menu /vendor/includes/admin/admin.php::435

Parameters

Parameter Type Description

Usage

do_action( 'wp_to_hootsuite_pro_admin_menu', function(  ) {
	// ... your code here
}, 10, 0 );


wp_to_hootsuite_pro_notices_delete_notices /vendor/includes/admin/notices.php::315

Parameters

Parameter Type Description

Usage

do_action( 'wp_to_hootsuite_pro_notices_delete_notices', function(  ) {
	// ... your code here
}, 10, 0 );