Added @version flag in updated notice functions

This commit is contained in:
Claudio Sanches 2020-01-23 16:46:01 -03:00
parent 8de3e9e839
commit 9d8dd197b5
1 changed files with 3 additions and 0 deletions

View File

@ -66,6 +66,7 @@ function wc_has_notice( $message, $notice_type = 'success' ) {
* Add and store a notice. * Add and store a notice.
* *
* @since 2.1 * @since 2.1
* @version 3.9.0
* @param string $message The text to display in the notice. * @param string $message The text to display in the notice.
* @param string $notice_type Optional. The name of the notice type - either error, success or notice. * @param string $notice_type Optional. The name of the notice type - either error, success or notice.
* @param array $data Optional notice data. * @param array $data Optional notice data.
@ -171,6 +172,7 @@ function wc_print_notices( $return = false ) {
* Print a single notice immediately. * Print a single notice immediately.
* *
* @since 2.1 * @since 2.1
* @version 3.9.0
* @param string $message The text to display in the notice. * @param string $message The text to display in the notice.
* @param string $notice_type Optional. The singular name of the notice type - either error, success or notice. * @param string $notice_type Optional. The singular name of the notice type - either error, success or notice.
* @param array $data Optional notice data. @since 3.9.0. * @param array $data Optional notice data. @since 3.9.0.
@ -200,6 +202,7 @@ function wc_print_notice( $message, $notice_type = 'success', $data = array() )
* Returns all queued notices, optionally filtered by a notice type. * Returns all queued notices, optionally filtered by a notice type.
* *
* @since 2.1 * @since 2.1
* @version 3.9.0
* @param string $notice_type Optional. The singular name of the notice type - either error, success or notice. * @param string $notice_type Optional. The singular name of the notice type - either error, success or notice.
* @return array[] * @return array[]
*/ */