Filters

Extend Comment Edit Lite programatically.

Don't want to mess with code? Comment Edit Pro provides a user interface for the commonly-requested features.

sce_loading_img - Change the loading image

/**
* Filter: sce_loading_img
*
* Replace the loading image with a custom version.
*
* @since 1.0.0
*
* @param string  $image_url URL path to the loading image.
*/

Example:

//Simple Comment Editing
add_filter( 'sce_loading_img', 'edit_sce_loading_img' );
function edit_sce_loading_img( $default_url ) {
	return 'http://domain.com/new_loading_image.gif';
}

sce_comment_check_errors - Add custom error messages

Here's an example:

sce_allow_delete - Whether to allow comment deletion or not

Example:

sce_allow_delete_confirmation - Whether to show a delete confirmation or not

Example:

sce_get_comment - Add extra data to the comment object

This is only used when retrieving a comment via Ajax and can be used by third-party plugins who post comments using Ajax

sce_extra_fields - Add extra HTML to the editing interface

sce_buttons - Add extra buttons to the editing interface (aside from Cancel and Save)

sce_content - Modify the edit output HTML

sce_save_before - Modify the comment object before saving via AJAX

sce_can_edit - Override the boolean whether a user can edit a comment or not

Example: https://gist.github.com/ronalfy/6b4fec8b3ac55bc47f3f

sce_security_key_min - How many security keys will be stored as post meta

sce_load_scripts - Whether to load SCE scripts or not

sce_comment_time - How long in minutes to allow comment editing

Example:

sce_show_timer - Show or hide the timer

Example:

sce_edit_text - Change the "Click to Edit" text.

Example:

sce_edit_save - Change the "Save" button text.

Example:

sce_edit_cancel - Change the "Cancel" button text.

Example:

sce_edit_delete - Change the "Delete" button text.

Example:

sce_akismet_enabled

Example:

Last updated