Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
PUM_Types::updated_messages( array $messages )
Updated Messages
Description Description
Returns an array of with all updated messages.
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Parameters Parameters
- $messages
-
(Required) Post updated message
Return Return
(array) $messages New post updated messages
Source Source
File: classes/Types.php
public static function updated_messages( $messages ) { $labels = array( 1 => _x( '%1$s updated.', 'Post Type Singular: Popup, Theme', 'popup-maker' ), 4 => _x( '%1$s updated.', 'Post Type Singular: Popup, Theme', 'popup-maker' ), 6 => _x( '%1$s published.', 'Post Type Singular: Popup, Theme', 'popup-maker' ), 7 => _x( '%1$s saved.', 'Post Type Singular: Popup, Theme', 'popup-maker' ), 8 => _x( '%1$s submitted.', 'Post Type Singular: Popup, Theme', 'popup-maker' ), ); $messages['popup'] = array(); $messages['popup_theme'] = array(); $popup = __( 'Popup', 'popup-maker' ); $theme = __( 'Popup Theme', 'popup-maker' ); foreach ( $labels as $k => $string ) { $messages['popup'][ $k ] = sprintf( $string, $popup ); $messages['popup_theme'][ $k ] = sprintf( $string, $theme ); } return $messages; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
1.0 | Introduced. |