First attempt at gaslightifying plugin master
authorLaury GvR <laury@gaslightmedia.com>
Thu, 11 Sep 2014 17:32:45 +0000 (13:32 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 11 Sep 2014 17:32:45 +0000 (13:32 -0400)
wp-content/plugins/gaslightify/Gaslightify.php [new file with mode: 0644]

diff --git a/wp-content/plugins/gaslightify/Gaslightify.php b/wp-content/plugins/gaslightify/Gaslightify.php
new file mode 100644 (file)
index 0000000..350ded4
--- /dev/null
@@ -0,0 +1,32 @@
+<?php
+
+/*
+Plugin Name: Gaslightify
+Plugin URI: http://URI_Of_Page_Describing_Plugin_and_Updates
+Description: A gasline to a Wordpress website.
+Version: 1.0
+Author: Gaslight Media
+Author URI: http://www.gaslightmedia.com
+License: Gaslight Media
+*/
+
+//function basic_content_replace ($text){
+//$text = str_replace(‘Old’,’New’,$text)
+//return $text;
+//}
+//add_filter(‘the_content’,’basic_content_replace’);
+//add_filter(‘the_title’,’basic_content_replace’);
+
+add_action('the_generator', 'interface_client_safeguard');
+
+function interface_client_safeguard() {
+    if ( current_user_can( 'manage_options' ) ) {
+        /* A user with admin privileges */
+        
+    } else {
+        /* A user without admin privileges */
+    }
+}
+
+
+?>
\ No newline at end of file