Created
September 15, 2011 13:31
-
-
Save ocean90/1219227 to your computer and use it in GitHub Desktop.
WordPress: Change pagination_base
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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