public/wordpress/wp-content/plugins/wp-courseware/includes/controllers/units.php
/**
	 * Register Post Type Course Unit Updated Messages.
	 *
	 * @since 4.3.0
	 *
	 * @param array $messages The updated messages.
	 *
	 * @return array $messages The updated messages.
	 */
Register Post Type Course Unit Updated Messages.

@param array $messages The updated messages.

@return array $messages The updated messages.
Register Post Type Course Unit Updated Messages . @param array $messages The updated messages . @return array $messages The updated messages .
public function post_type_updated_messages( $messages ) {
		global $post;
		$permalink = get_permalink( $post );
		$messages[ $this->post_type_slug ] = apply_filters( 'wpcw_units_post_type_updated_messages', array(
			0  => '', 
			1  => sprintf( __( 'Unit updated. <a target="_blank" href="%s">View Unit</a>', 'wp-courseware' ), esc_url( $permalink ) ),
			2  => __( 'Custom field updated.', 'wp-courseware' ),
			3  => __( 'Custom field deleted.', 'wp-courseware' ),
			4  => __( 'Unit updated.', 'wp-courseware' ),
			5  => isset( $_GET['revision'] ) ? sprintf( __( 'Unit restored to revision from %s', 'wp-courseware' ), wp_post_revision_title( (int) $_GET['revision'], false ) ) : false,
			6  => sprintf( __( 'Unit published. <a href="%s">View Unit</a>', 'wp-courseware' ), esc_url( $permalink ) ),
			7  => __( 'Unit saved.', 'wp-courseware' ),
			8  => sprintf( __( 'Unit submitted. <a target="_blank" href="%s">Preview Unit</a>', 'wp-courseware' ), esc_url( add_query_arg( 'preview', 'true', $permalink ) ) ),
			9  => sprintf( __( 'Unit scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview Unit</a>', 'wp-courseware' ),
				date_i18n( __( 'M j, Y @ G:i' ), strtotime( $post->post_date ) ), esc_url( $permalink ) ),
			10 => sprintf( __( 'Unit draft updated. <a target="_blank" href="%s">Preview Unit</a>', 'wp-courseware' ), esc_url( add_query_arg( 'preview', 'true', $permalink ) ) ),
		) );
		return $messages;
	}
public function post_type_updated_messages ( $ messages ) { global $ post ; $ permalink = get_permalink ( $ post ) ; $ messages [ $ this -> post_type_slug ] = apply_filters ( 'wpcw_units_post_type_updated_messages' , array ( 0 => '' , 1 => sprintf ( __ ( 'Unit updated. <a target="_blank" href="%s">View Unit</a>' , 'wp-courseware' ) , esc_url ( $ permalink ) ) , 2 => __ ( 'Custom field updated.' , 'wp-courseware' ) , 3 => __ ( 'Custom field deleted.' , 'wp-courseware' ) , 4 => __ ( 'Unit updated.' , 'wp-courseware' ) , 5 => isset ( $ _GET [ 'revision' ] ) ? sprintf ( __ ( 'Unit restored to revision from %s' , 'wp-courseware' ) , wp_post_revision_title ( ( int ) $ _GET [ 'revision' ] , false ) ) : false , 6 => sprintf ( __ ( 'Unit published. <a href="%s">View Unit</a>' , 'wp-courseware' ) , esc_url ( $ permalink ) ) , 7 => __ ( 'Unit saved.' , 'wp-courseware' ) , 8 => sprintf ( __ ( 'Unit submitted. <a target="_blank" href="%s">Preview Unit</a>' , 'wp-courseware' ) , esc_url ( add_query_arg ( 'preview' , 'true' , $ permalink ) ) ) , 9 => sprintf ( __ ( 'Unit scheduled for: <strong>%1$s</strong>. <a target="_blank" href="%2$s">Preview Unit</a>' , 'wp-courseware' ) , date_i18n ( __ ( 'M j, Y @ G:i' ) , strtotime ( $ post -> post_date ) ) , esc_url ( $ permalink ) ) , 10 => sprintf ( __ ( 'Unit draft updated. <a target="_blank" href="%s">Preview Unit</a>' , 'wp-courseware' ) , esc_url ( add_query_arg ( 'preview' , 'true' , $ permalink ) ) ) , ) ) ; return $ messages ; }
Register Post Type Course Unit Updated Messages.
Register Post Type Course Unit Updated Messages .
// Unused. Messages start at index 1. /* translators: %s: date and time of the revision */ // translators: Publish box date format, see http://php.net/date