acf_form_comment::__construct
__construct
This function will setup the class functionality
Method of the class: acf_form_comment{}
No Hooks.
Returns
null. Nothing (null).
Usage
$acf_form_comment = new acf_form_comment(); $acf_form_comment->__construct();
Changelog
| Since 5.0.0 | Introduced. |
acf_form_comment::__construct() acf form comment:: construct code ACF 6.0.4
function __construct() {
// actions
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
// render
add_filter( 'comment_form_field_comment', array( $this, 'comment_form_field_comment' ), 999, 1 );
// add_action( 'comment_form_logged_in_after', array( $this, 'add_comment') );
// add_action( 'comment_form', array( $this, 'add_comment') );
// save
add_action( 'edit_comment', array( $this, 'save_comment' ), 10, 1 );
add_action( 'comment_post', array( $this, 'save_comment' ), 10, 1 );
}