Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

WP Single Post Navigation -- constants and filters for customizing and branding

View gist:2961493
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
<?php
// since plugin version v1.5:
// Constants:
/**
* WP Single Post Navigation: Reverse link direction
*/
define( 'WPSPN_REVERSE_LINK_DIRECTION', TRUE );
// Filters:
/**
* Customize previous post link:
* @link https://gist.github.com/1574571
*/
/**
* Customize next post link:
* @link https://gist.github.com/1574576
*/
add_filter( 'wpspn_filter_previous_post_tooltip', 'custom_wpspn_previous_post_tooltip_output' );
/** WP Single Post Navigation: Custom Previous Tooltip Output */
function custom_wpspn_previous_post_tooltip_output() {
return __( 'Custom previous post:', 'your-text-domain' );
}
add_filter( 'wpspn_filter_next_post_tooltip', 'custom_wpspn_next_post_tooltip_output' );
/** WP Single Post Navigation: Custom Next Tooltip Output */
function custom_wpspn_next_post_tooltip_output() {
return __( 'Custom next post:', 'your-text-domain' );
}
Owner

Note: The above codes work with plugin version 1.5 or higher!

Extended explanation can be found at the plugin's page "FAQ" section at the bottom:
http://wordpress.org/extend/plugins/wp-single-post-navigation/faq/

Download "WP Single Post Navigation" plugin at wordpress.org:
http://wordpress.org/extend/plugins/wp-single-post-navigation/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.