WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Самая быстрая Тема-конструктор для WordPress
функция не описана

WPSEO_Bulk_List_Table::prepare_page_navigation() public Yoast 1.0

Sets the correct pagenumber and pageurl for the navigation.

Это метод класса: WPSEO_Bulk_List_Table{}

Хуков нет.

Возвращает

Null. Ничего.

Использование

$WPSEO_Bulk_List_Table = new WPSEO_Bulk_List_Table();
$WPSEO_Bulk_List_Table->prepare_page_navigation();

Код WPSEO_Bulk_List_Table::prepare_page_navigation() Yoast 15.1.1

<?php
public function prepare_page_navigation() {

	$request_url = $this->request_url . $this->page_url;

	$current_page   = $this->current_page;
	$current_filter = $this->current_filter;
	$current_status = $this->current_status;
	$current_order  = $this->current_order;

	/*
	 * If current type doesn't compare with objects page_type, then we have to unset
	 * some vars in the requested url (which will be used for internal table urls).
	 */
	if ( isset( $this->input_fields['type'] ) && $this->input_fields['type'] !== $this->page_type ) {
		$request_url = remove_query_arg( 'paged', $request_url ); // Page will be set with value 1 below.
		$request_url = remove_query_arg( 'post_type_filter', $request_url );
		$request_url = remove_query_arg( 'post_status', $request_url );
		$request_url = remove_query_arg( 'orderby', $request_url );
		$request_url = remove_query_arg( 'order', $request_url );
		$request_url = add_query_arg( 'pages', 1, $request_url );

		$current_page   = 1;
		$current_filter = '-1';
		$current_status = '';
		$current_order  = [
			'orderby' => 'post_title',
			'order'   => 'asc',
		];
	}

	$_SERVER['REQUEST_URI'] = $request_url;

	$_GET['paged']                = $current_page;
	$_REQUEST['paged']            = $current_page;
	$_REQUEST['post_type_filter'] = $current_filter;
	$_GET['post_type_filter']     = $current_filter;
	$_GET['post_status']          = $current_status;
	$_GET['orderby']              = $current_order['orderby'];
	$_GET['order']                = $current_order['order'];
}