protected function current_section_in_cookie( $id ) {
		if ( empty( $_COOKIE['_wplibs_current_sections'] ) ) {
			return null;
		}

		$currents = json_decode(
			sanitize_text_field( wp_unslash( $_COOKIE['_wplibs_current_sections'] ) ), true
		);

		if ( array_key_exists( $id, $currents ) ) {
			return $currents[ $id ];
		}

		return null;
	}
protected function current_section_in_cookie( $id ) {
		if ( empty( $_COOKIE['_wplibs_current_sections'] ) ) {
			return null;
		}

		$currents = json_decode(
			sanitize_text_field( wp_unslash( $_COOKIE['_wplibs_current_sections'] ) ), true
		);

		if ( array_key_exists( $id, $currents ) ) {
			return $currents[ $id ];
		}

		return null;
	}
protected function current_section_in_cookie ( $ id ) { if ( empty ( $ _COOKIE [ '_wplibs_current_sections' ] ) ) { return null ; } $ currents = json_decode ( sanitize_text_field ( wp_unslash ( $ _COOKIE [ '_wplibs_current_sections' ] ) ) , true ) ; if ( array_key_exists ( $ id , $ currents ) ) { return $ currents [ $ id ] ; } return null ; }
Resolve current section from the cookie.

@return string|null
Resolve current section from the cookie .