WHAT'S NEW?
Loading...
Showing posts with label plugin. Show all posts
Showing posts with label plugin. Show all posts

What happened to the Firebug we know and love?

Firebug isn't being developed or maintained any longer because it can't work with e10s (multi-process browsers) .Old version is much better and easy than current version. If you need your old firebug back, and you hate firefox dev tools, then you are in the right place. The recent update of firebug, it is integrated with inspector and the normal functions which make firebug console better than chrome are gone.



You can install the old version from this link:

https://addons.mozilla.org/en-US/firefox/addon/firebug/versions/2.0.17

or read more here

http://stackoverflow.com/questions/40800173/firebug-is-not-working-with-firefox-version-50-0/42069444#42069444
The code below checks to see if a user has admin capabilities. If the user is not an admin, he will only see his own posts listed on the posts edit screen, making it easier for him to locate his own posts.

<?php
/*
Plugin Name: Simplify Post Edit List
Description: Show only the author's posts in the edit list
Version: 0.1
License: GPL
Author: Sarah Gooding
*/

function mypo_parse_query_useronly( $wp_query ) {
    if ( strpos( $_SERVER[ 'REQUEST_URI' ], '/wp-admin/edit.php' ) !== false ) {
        if ( !current_user_can( 'update_core' ) ) {
            global $current_user;
            $wp_query->set( 'author', $current_user->id );
        }
    }
}

add_filter('parse_query', 'mypo_parse_query_useronly' );

// Remove Post Counts

// Create a specific hook
add_filter('views_edit-post', 'custom_editor_counts', 10, 1);

function custom_editor_counts($views) {
// var_dump($views) to check other array elements that you can hide.
unset($views['all']);
unset($views['publish']);
unset($views['pending']);
unset($views['trash']);
return $views;
}

?>