Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
WordPress: Change pagination_base
<?php
/**
* Setzt die Seitenbasis für die Permalinkgenerierung auf /seite/ (Standard: /page/).
*
* @author Dominik Schilling
* @license GPLv2
* @link http://wpgrafie.de/141/
*
* @version 0.1
*/
function ds_set_pagination_base() {
global $wp_rewrite;
$wp_rewrite->pagination_base = 'seite';
}
add_action( 'init', 'ds_set_pagination_base' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.