init_hooks(); } /** * Init hooks. * * @since 1.0.3 * @return void */ private function init_hooks() { add_action( 'admin_head', array( $this, 'review_notice_scripts' ) ); add_action( 'admin_notices', array( $this, 'review_notice' ) ); add_action( 'wp_ajax_blockart_review_notice_dismiss', array( $this, 'review_notice_dismiss' ) ); } /** * Review notice markup. * * @since 1.0.3 * @return void */ public function review_notice() { if ( ! $this->maybe_show_review_notice() ) { return; } ?>

BlockArt Blocks', '
', 'What benefit would you have?
', '' ) ?>

strtotime( '-14 day' ) || ( isset( $review['partial_dismiss'] ) && ( $review['partial_dismiss'] > strtotime( '-14 day' ) ) ) || ( isset( $review['dismiss'] ) && $review['dismiss'] ) ) { return false; } return true; } /** * Review notice scripts. * * @return void */ public function review_notice_scripts() { if ( ! $this->maybe_show_review_notice() ) { return; } ?>