public function dismiss_notice_ajax() {
		if ( ! isset( $_POST['id'] ) ) {
			echo 0;
			exit;
		}
		if ( empty( $_POST['id'] ) || false === strpos( $_POST['id'], 'tdp-' ) ) {
			echo 0;
			exit;
		}

		$id = self::$instance->get_id( str_replace( 'tdp-', '', $_POST['id'] ) );
		echo self::$instance->dismiss_notice( $id );
		exit;

	}
public function dismiss_notice_ajax() {
		if ( ! isset( $_POST['id'] ) ) {
			echo 0;
			exit;
		}
		if ( empty( $_POST['id'] ) || false === strpos( $_POST['id'], 'tdp-' ) ) {
			echo 0;
			exit;
		}

		$id = self::$instance->get_id( str_replace( 'tdp-', '', $_POST['id'] ) );
		echo self::$instance->dismiss_notice( $id );
		exit;

	}
public function dismiss_notice_ajax ( ) { if ( ! isset ( $ _POST [ 'id' ] ) ) { echo 0 ; exit ; } if ( empty ( $ _POST [ 'id' ] ) || false === strpos ( $ _POST [ 'id' ] , 'tdp-' ) ) { echo 0 ; exit ; } $ id = self :: $ instance -> get_id ( str_replace ( 'tdp-' , '' , $ _POST [ 'id' ] ) ) ; echo self :: $ instance -> dismiss_notice ( $ id ) ; exit ; }
Dismiss a notice via ajax.

@return void
Dismiss a notice via ajax .