I had create this tiny plugin to add a line of text on all sub sites of my WP Multisite here is the code:
<?php
/*
Plugin Name: ComCart Footer
Description: Adds whatever we want to the footer
Author: your Leandro De Aguiar
Version: 1.0
Author URI: comcart.it
*/
function comcartfooter () { ?>
<p><em>This blog is provided by ComCart.</em></p>
<?php }
add_action('wp_footer', ‘comcartfooter’);
?>
But I’m getting these errors:
b>Warning</b>: Use of undefined constant ‘comcartfooter’ - assumed '‘comcartfooter’' (this will throw an Error in a future version of PHP) in <b>/srv/users/***************public/wp-content/plugins/comcart-footer/comcartfooter.php</b> on line <b>17</b><br />
<br />
<b>Warning</b>: Cannot modify header information - headers already sent by (output started at /srv/users/****************/public/wp-content/plugins/comcart-footer/comcartfooter.php:17) in <b>/srv/users/*****************/public/wp-admin/includes/misc.php</b> on line <b>1124</b><br />
Looking forward for help!
Many thanks,
Leandro
]]>Many thanks for your reply.
Now I am not getting any error but the Plugin do not activate on the network.
What I’m missing?
Many thanks.
Leandro
]]>