Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: Zed1 test
- Plugin URI: http://zed1.com/
- Description: Test some stuf
- Author: Mike Little
- Version: 0.0.1
- Author URI: http://zed1.com/
- Author URI: http://zed1.com/
- License: GPL2+
- */
- /*
- Copyright 2011 Mike Little (email : mike@zed1.com)
- This file is part of The Zed1 test Plugin.
- The Zed1 test Plugin is free software:
- you can redistribute it and/or modify it under the terms of the
- GNU General Public License as published by the Free Software Foundation,
- either version 2 of the License, or (at your option) any later version.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
- */
- new zed1_test();
- class zed1_test {
- static $my_data;
- function zed1_test() {
- return $this->__construct();
- } // end php4 constructor
- function __construct() {
- add_action( 'init', array( 'zed1_test', 'init' ) );
- } // end constructor
- static function init() {
- add_filter( 'manage_media_columns', array( 'zed1_test', 'manage_media_columns' ), 10, 2 );
- } // end init
- static function manage_media_columns( $posts_columns, $detached ) {
- unset($posts_columns['parent']);
- return $posts_columns;
- }
- } // end class zed1_test
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement