Links

JavaScript Hooks

There are common JavaScript hooks for Comment Edit Lite.
Don't want to mess with code? Comment Edit Pro provides a user interface for the commonly-requested features.

JavaScript Hooks

sce.comment.save.data

/**
* JSFilter: sce.comment.save.data
*
* Event triggered before a comment is saved
*
* @since 1.4.0
*
* @param object $ajax_save_params
*/

sce.comment.timer.text

/**
* JSFilter: sce.comment.timer.text
*
* Filter triggered before a timer is returned
*
* @since 1.4.0
*
* @param string Timer text
* @param string Minutes text (internationalized)
* @param string Seconds text (internationalized)
* @param int minutes
* @param int seconds
*/

JavaScript Events

sce.comment.save.pre

/**
* Event: sce.comment.save.pre
*
* Event triggered before a comment is saved
*
* @since 1.4.0
*
* @param int $comment_id The Comment ID
* @param int $post_id The Post ID
*/

sce.comment.save

/**
* Event: sce.comment.save
*
* Event triggered after a comment is saved
*
* @since 1.4.0
*
* @param int $comment_id The Comment ID
* @param int $post_id The Post ID
*/

sce.timer.loaded

/**
* Event: sce.timer.loaded
*
* Event triggered after a comment's timer has been loaded
*
* @since 1.3.0
*
* @param jQuery Element of the comment
*/

sce.comment.loaded

/**
* Event: sce.comment.loaded
*
* Event triggered after SCE has loaded a comment.
*
* @since 1.5.0
*
* @param object Comment Object
*/
Last modified 3mo ago