Wordpress – Creare una Site Specific PlugIn

‘Site Specific PlugIn’ è una plugin WordPress creata solamente per funzionare all’interno del sito corrente.

Creare ed installare:

Creare il file php ‘yoursitename-plugin.php’ in blog/wp-content/plugins/yoursitename-plugin/yoursitename-plugin.php

Il codice:

<?php
/*
Plugin Name: Site Plugin for example.com
Description: Site specific code changes for example.com
*/

/* Start Adding Functions Below this Line */

 
/* Stop Adding Functions Below this Line */
?>

Attivare:

COLONNA SINISTRA> PlugIns> ‘Site Plugin for example.com’> Activate