Having Multiple authors for the same WordPress Plugin

Is it possible to have more than one author for a WordPress plugin using the plugin comment block? I searched for it, but I think it’s not possible through the default way. Is there a workaround for this?

/**
 * Plugin Name: Name Of The Plugin
 * Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
 * Description: A brief description of the Plugin.
 * Version: The Plugin's Version Number, e.g.: 1.0
 * Author: Name Of The Plugin Author
 * Author URI: http://URI_Of_The_Plugin_Author
 * License: A "Slug" license name e.g. GPL2
 */

2 Answers
2

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