AnsPress_Admin::custom_post_location( String $location )

Description #

Redirect to custom post location for error message.

Parameters #

  • $location
    String (Required) redirect url.

Source #

File: admin/anspress-admin.php

	public static function custom_post_location( $location ) {
		remove_filter( 'redirect_post_location', __FUNCTION__, 99 );
		$location = add_query_arg( 'message', 99, $location );

		return $location;
	}

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