Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created November 11, 2011 15:23
Show Gist options
  • Save billerickson/1358251 to your computer and use it in GitHub Desktop.
Save billerickson/1358251 to your computer and use it in GitHub Desktop.
Page Links To - Limit to Rotator
<?php
/**
* Page Links To - Limit to Rotator
* @author Bill Erickson
* @link http://wordpress.org/extend/plugins/page-links-to/
* @link http://www.billerickson.net/code/page-links-to-limit-to-rotator
*
* @param array $post_types default
* @return array $post_types modified
*/
function be_page_links_to_rotator( $post_types ) {
return array( 'rotator' );
}
add_filter( 'page-links-to-post-types', 'be_page_links_to_rotator' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment