Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions wp-comment-notes.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ class WP_Comment_Notes
*/
private function __construct() {
// back end
add_action ( 'plugins_loaded', array( $this, 'textdomain' ) );
add_action ( 'admin_enqueue_scripts', array( $this, 'admin_scripts' ) );
add_action ( 'do_meta_boxes', array( $this, 'create_metaboxes' ), 10, 2 );
add_action ( 'save_post', array( $this, 'save_custom_meta' ), 1 );
add_action( 'plugins_loaded', array( $this, 'textdomain') );
add_action( 'admin_enqueue_scripts', array( $this, 'admin_scripts') );
add_action( 'do_meta_boxes', array( $this, 'create_metaboxes'), 10, 2 );
add_action( 'save_post', array( $this, 'save_custom_meta'), 1 );

// front end
add_action ( 'wp_enqueue_scripts', array( $this, 'front_scripts' ), 10 );
add_filter ( 'comment_form_defaults', array( $this, 'custom_notes_filter' ) );
add_action( 'wp_enqueue_scripts', array( $this, 'front_scripts'), 10 );
add_filter( 'comment_form_defaults', array( $this, 'custom_notes_filter') );
}

/**
Expand Down Expand Up @@ -356,4 +356,4 @@ public function get_post_types() {


// Instantiate our class
$WP_Comment_Notes = WP_Comment_Notes::getInstance();
$WP_Comment_Notes = WP_Comment_Notes::getInstance();