WordPress.org

Ready to get started?Download WordPress

Forums

Admin Bar Backend Search
[resolved] Works great (3 posts)

  1. This works exactly as advertised! If I come up with any suggestions, I'll be sure to let you know!

    http://wordpress.org/extend/plugins/admin-bar-backend-search/

  2. plittlefield
    Member
    Posted 2 years ago #

    Great plugin! How can I change the first (default) option to be Pages instead of Posts?

  3. Dominik Schilling (ocean90)
    WordPress Dev
    Plugin Author

    Posted 2 years ago #

    function ds_switch_post_page( $types ) {
    	$tmp           = $types['post'];
    	$types['post'] = $types['page'];
    	$types['page'] = $tmp;
    
    	return $types;
    }
    add_filter( 'ab_backend_search_types', 'ds_switch_post_page' );

    See http://wpgrafie.de/wp-plugins/admin-bar-backend-search/en/#comment-1096

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic