Filters Documentation
Extend Comment Edit Pro programatically.
Button & Timer Filters
sce_button_extra_stop_timer
sce_button_extra_stop_timerFilter 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
sce_webhook_post_type_argsFilter 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}
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
sce_can_view_pending_commentsFilter 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
sce_mentions_subscribe_body_textFilter 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
sce_mentions_subscribe_templateFilter 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
sce_mentions_unsubscribe_body_textFilter 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
sce_mentions_unsubscribe_templateFilter 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
sce_mentions_subscribe_scripts_headerFilter 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
sce_mentions_subscribe_styles_headerFilter 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:
sce_mentions_subscribe_scripts_footer
sce_mentions_subscribe_scripts_footerFilter 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
sce_mentions_unsubscribe_scripts_headerFilter 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
sce_mentions_unsubscribe_styles_headerFilter 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:
sce_mentions_unsubscribe_scripts_footer
sce_mentions_unsubscribe_scripts_footerFilter 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
sce_integrations_localized_varsFilter 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
sce_avatar_sizeFilter 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
sce_avatar_classesFilter 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
sce_gravatar_protection_sizeFilter 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
sce_gravatar_protection_classesFilter 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?
