Having Multiple authors for the same WordPress Plugin

Give this a try

1) First add new headers for the plugin meta:

add_filter('extra_plugin_headers', 'add_extra_headers');

function add_extra_headers(){
return array('Author2');
}

2) Next filter the authors meta row on output:

add_filter('plugin_row_meta', 'filter_authors_row_meta', 1, 4);

function filter_authors_row_meta($plugin_meta, $plugin_file, $plugin_data, $status ){

if(empty($plugin_data['Author'])){
    return $plugin_meta;
}


if ( !empty( $plugin_data['Author2'] ) ) {
    $plugin_meta[1] = $plugin_meta[1] . ', ' . $plugin_data['Author2'];
}


return $plugin_meta;
}

3) When you create the plugin add the new meta key and value..example:

/**
 * Plugin Name: My Plugin
 * Plugin URI:http://myplugin.com
 * Description: My Plugin is the Best!
 * Version: 1.0
 * Author: <a href="#">Author One Name</a>
 * Author2: <a href="#">Author Two Name</a>
 */

Leave a Comment

tech