wphooks.info - redirect_term_location

redirect_term_location

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-admin/edit-tags.php:
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
	}

	/**
	 * Filters the taxonomy redirect destination URL.
	 *
	 * @since 4.6.0
	 *
	 * @param string $location The destination URL.
	 * @param object $tax      The taxonomy object.
	 */
	wp_redirect( apply_filters( 'redirect_term_location', $location, $tax ) );
	exit;
}

$wp_list_table->prepare_items();
$total_pages = $wp_list_table->get_pagination_arg( 'total_pages' );

if ( $pagenum > $total_pages && $total_pages > 0 ) {
	wp_redirect( add_query_arg( 'paged', $total_pages ) );
	exit;