Filters Documentation

Extend Comment Edit Pro programatically.

Button & Timer Filters

sce_button_extra_stop_timer

Filter the SVG content for the stop timer button.

Parameters:

  • string $stop_timer_svg - The SVG content for the stop timer button. Default: empty string.

Return: string - The filtered SVG content.

Example:

add_filter( 'sce_button_extra_stop_timer', function( $svg ) {
    return '<svg>...</svg>';
} );

Webhook Filters

sce_webhook_post_type_args

Filter the post type arguments used when registering the webhook post type.

Parameters:

  • array $post_type_args - Post type arguments prior to registering the post type.

Return: array - The filtered post type arguments.

Since: 3.0.0

Example:


License Filters

sce_core_license_data_{$action}

Filter the license data response for a specific action. This is a dynamic filter where {$action} can be: check_license, activate_license, or deactivate_license.

Parameters:

  • array $response - Response of the license action.

Return: array - The filtered license data.

Example:


Output Filters

sce_can_view_pending_comments

Filter to allow moderators to view pending comments.

Parameters:

  • bool $can_view_pending_comments - Whether to allow moderators to view pending comments. Default: true.

  • WP_Comment_Query $query - The comment query object.

Return: bool - Whether moderators can view pending comments.

Example:


Mentions Filters

sce_mentions_subscribe_body_text

Filter the body text of the subscription success screen.

Parameters:

  • string $body - The body of the subscription success screen.

  • string $unsubscribe_url - The unsubscribe URL.

Return: string - The filtered body text.

Example:

sce_mentions_subscribe_template

Filter the template file path used for the subscription page.

Parameters:

  • string $template - The template file path.

Return: string - The filtered template file path.

Example:

sce_mentions_unsubscribe_body_text

Filter the body text of the unsubscribe success screen.

Parameters:

  • string $body - The body of the unsubscribe success screen.

Return: string - The filtered body text.

Example:

sce_mentions_unsubscribe_template

Filter the template file path used for the unsubscribe page.

Parameters:

  • string $template - The template file path.

Return: string - The filtered template file path.

Example:

sce_mentions_subscribe_scripts_header

Filter the script handles to print in the header on the subscribe page.

Parameters:

  • array $script_header_handles - Array of script handles to output. Default: empty array.

  • string $sce_mentions_theme_name - The theme name.

Return: array - Array of script handles.

Since: 1.0.0

Example:

sce_mentions_subscribe_styles_header

Filter the style handles to print in the header on the subscribe page.

Parameters:

  • array $style_header_handles - Array of style handles to output. Default: empty array.

  • string $sce_mentions_theme_name - The theme name.

Return: array - Array of style handles.

Since: 1.0.0

Example:

Filter the script handles to print in the footer on the subscribe page.

Parameters:

  • array $script_footer_handles - Array of script handles to output. Default: empty array.

  • string $eff_theme_name - The theme name.

Return: array - Array of script handles.

Since: 1.0.0

Example:

sce_mentions_unsubscribe_scripts_header

Filter the script handles to print in the header on the unsubscribe page.

Parameters:

  • array $script_header_handles - Array of script handles to output. Default: empty array.

  • string $sce_mentions_theme_name - The theme name.

Return: array - Array of script handles.

Since: 1.0.0

Example:

sce_mentions_unsubscribe_styles_header

Filter the style handles to print in the header on the unsubscribe page.

Parameters:

  • array $style_header_handles - Array of style handles to output. Default: empty array.

  • string $sce_mentions_theme_name - The theme name.

Return: array - Array of style handles.

Since: 1.0.0

Example:

Filter the script handles to print in the footer on the unsubscribe page.

Parameters:

  • array $script_footer_handles - Array of script handles to output. Default: empty array.

  • string $eff_theme_name - The theme name.

Return: array - Array of script handles.

Since: 1.0.0

Example:


Integration Filters

sce_integrations_localized_vars

Filter the localized variables for the integrations admin script. Other integrations can add their own variables here.

Parameters:

  • array $localized_vars - The localized variables array.

Return: array - The filtered localized variables.

Since: 3.0.0

Example:


Avatar Filters

sce_avatar_size

Filter the avatar size (used for both width and height).

Parameters:

  • int $size - The avatar size in pixels.

Return: int - The filtered avatar size.

Example:

sce_avatar_classes

Filter the CSS classes applied to the avatar image.

Parameters:

  • array $classes - Array of CSS classes for the avatar output.

Return: array - The filtered array of CSS classes.

Example:

sce_gravatar_protection_size

Filter the gravatar protection size (used for both width and height).

Parameters:

  • int $size - The gravatar protection size in pixels.

Return: int - The filtered gravatar protection size.

Example:

sce_gravatar_protection_classes

Filter the CSS classes applied to the gravatar protection image.

Parameters:

  • array $classes - Array of CSS classes for the gravatar protection output.

Return: array - The filtered array of CSS classes.

Example:

Last updated

Was this helpful?