AnsPress_Post_Table_Hooks::post_custom_message( array $messages )

Description #

Custom post update message.

Parameters #

  • $messages
    array (Required) Messages.

Source #

File: admin/class-list-table-hooks.php

	public static function post_custom_message( $messages ) {
		global $post;
		if ( 'answer' === $post->post_type && (int) ap_sanitize_unslash( 'message', 'g' ) === 99 ) {
			add_action( 'admin_notices', array( __CLASS__, 'ans_notice' ) );
		}

		return $messages;
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment