Advertisement
Guest User

Simo BILS Shortcuts

a guest
Feb 20th, 2014
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.76 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Plugin Name: Simo BILS Shortcuts
  4.  * Description: Add custom shortcuts to <a href="http://wordpress.org/plugins/better-internal-link-search/">Better Internal Link Search</a>.
  5.  * Version: 1.0.0
  6.  * Author: simoreds
  7.  * License: GPL-2.0+
  8.  * License URI: http://www.gnu.org/licenses/gpl-2.0.html
  9.  */
  10.  
  11. function simo_bils_shortcuts( $shortcuts ) {
  12.     $shortcuts['tuscany'] = array(
  13.         'title'     => 'Tuscany',
  14.         'permalink' => 'http://www.gate-away.com/property_region.php?region=16',
  15.     );
  16.  
  17.     $shortcuts['sicily'] = array(
  18.         'title'     => 'Sicily',
  19.         'permalink' => 'http://www.gate-away.com/property_region.php?region=xx',
  20.     );
  21.    
  22.     asort( $shortcuts );
  23.  
  24.     return $shortcuts;
  25. }
  26. add_filter( 'better_internal_link_search_shortcuts', 'simo_bils_shortcuts' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement