-
Notifications
You must be signed in to change notification settings - Fork 116
Filter Reference
Customize the title of the Stream Account screen.
$title (string)
$title (string) The title of the Stream Account admin screen.
Since: 2.0.0
Source file: classes/class-wp-stream-admin.php
apply_filters( 'wp_stream_account_page_title', $title );Customize the URL of action links in Stream Settings.
$url (string)
$url (string) The URL of the action link.
$record (object) The record object.
Since: 1.3.0
Source file: connectors/class-wp-stream-connector-settings.php
apply_filters( 'wp_stream_action_link_url', $url, $record );Customize the label used for author agents.
$label (string)
$label (string) The author agent label.
$agent (string) The author agent slug, such as wp_cli or wp_cron.
Since: 1.4.4
Source file: classes/class-wp-stream-author.php
apply_filters( 'wp_stream_agent_label', $label, $agent );Allows excluded connectors to be overridden and registered.
$is_excluded (bool)
$is_excluded (bool) True if excluded, otherwise false.
$connector (string) The current connector's slug.
$excluded_connectors (array) An array of all excluded connector slugs.
Since: 1.3.0
Source file: classes/class-wp-stream-connectors.php
apply_filters( 'wp_stream_check_connector_is_excluded', $is_excluded, $connector, $excluded_connectors );Allows for adding additional connectors via classes that extend WP_Stream_Connector.
$classes (array)
$classes (array) An array of connector class names.
Since: 0.2.0
Source file: classes/class-wp-stream-connectors.php
apply_filters( 'wp_stream_connectors', $classes );Manually disable Stream from the WP Admin for certain cases, such as, blocking specific users.
(bool)
(bool) True if disabled, otherwise false.
Since: 1.4.0
Source file: classes/class-wp-stream-admin.php
apply_filters( 'wp_stream_disable_admin_access', false );Displays an HTML comment in the front-end head to indicate that Stream is activated, and which version is currently in use.
<!-- Stream WordPress user activity plugin v2.0.0 -->$comment (string|bool)
$comment (string|bool) String to use as the HTML comment text. Use an empty string or FALSE to disable.
Since: 1.4.5
Source file: stream.php
add_filter( 'wp_stream_frontend_indicator', $comment );Allows modification of the data logged in Stream from a connector. Returning false to this filter will skip logging the data entirely.
For examples of this in use, see the log_override() methods in some of the custom Connectors including the User Switching Connector and the WordPress SEO Connector.
$data (array|false) An array to be used in the log or false if it should not be logged.
$data (array) The data from the Connector log function.
Since 2.0.0-beta1
Source file: classes/class-log.php
apply_filters( 'wp_stream_log_data', $data );Allows modification of record information just before logging occurs.
$records (array)
$records (array) An array of record data.
Since: 0.2.0
Source file: classes/class-wp-stream-db.php
apply_filters( 'wp_stream_record_array', $records );