Plugin Directory

Changeset 2542245


Ignore:
Timestamp:
06/03/2021 08:53:39 PM (5 years ago)
Author:
graphicscove
Message:
  • Initial launch of the remote version
  • Updated compatible version number
Location:
wp-killswitch
Files:
21 added
2 edited

Legend:

Unmodified
Added
Removed
  • wp-killswitch/trunk/readme.txt

    r2361961 r2542245  
    11=== WP Killswitch ===
    22Contributors: graphicscove
    3 Donate link: http://graphicscove.com/
     3Donate link: https://graphicscove.com
    44Tags: css, killswitch
    55Requires at least: 4.0
    6 Tested up to: 5.5.0
    7 Stable tag: 0.0.3
     6Tested up to: 5.7.2
     7Stable tag: 0.1.0
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 WP Killswitch lets you non-destructively white out a difficult client's website while this plugin is active.
     11WP Killswitch lets you non-destructively white out a Wordpress website while this plugin is active (recommended as an mu-plugin).
    1212
    1313== Description ==
    1414
    15 WP Killswitch lets you non-destructively white out a difficult client's website while this plugin is active. It is suggested that this plugin should only be used as a last resort when negotiations with a particularly difficult client fail.
     15WP Killswitch lets you non-destructively white out a Wordpress website while this plugin is active (recommended as an mu-plugin).
    1616
    17 To stop the client disabling/deleting this plugin it is recommended you add this to the mu-plugins directory via FTP.
     17To prevent anyone disabling or deleting this plugin it is recommended you add this to the mu-plugins directory via FTP.
    1818
    1919When activated this plugin will white out the front end of the website and make it inaccessible for visitors. The admin panel is still visible at your admin URL. This plugin will also display a warning notification in the admin telling the client/administrator to contact their webmaster.
    2020
    21 Please remember to delete this plugin after you have successfully negotiated with the client.
    22 
    23 If you are using this plugin for other purposes - to hide a website while you work on fixing something for example - please note that by initiating a white out on the front end of a website, you are not deleting or turning off the website. The contents of the site will still be visible to search engines and text only browsers. Any user can still see the content by viewing the source code of the page.
     21If you are using this plugin to hide a website while you work on fixing something for example - please note that by initiating a white out on the front end of a website, you are not deleting or turning off the website. The contents of the site will still be visible to search engines and text only browsers. Any user can still see the content by viewing the source code of the page.
    2422
    2523== Installation ==
     
    28262. As mu-plugins are automatically activated you're done! Contact your client and resolve the situation asap!
    2927
    30 == Frequently Asked Questions ==
    31 
    32 = Why use WP Killswitch =
    33 
    34 Sometimes people are difficult and there's no way around that. By temporarily making the site inaccessible a difficult client should listen to you and open a path for negotiation.
    35 
    3628== Screenshots ==
    3729
    38 1. What the client sees on the front end
     301. What the user sees on the front end
    39312. The warning message displayed in the admin
    4032
    4133== Changelog ==
     34
     35= 0.1.0 =
     36* Initial launch of the remote version
     37* Updated compatible version number
    4238
    4339= 0.0.3 =
     
    5248= 0.0.1 =
    5349* First build
     50
     51== Remote ==
     52
     53If you need to activate WP Killswitch remotely for whatever reason, you can register your site at https://wpkillswitch.io
  • wp-killswitch/trunk/wp-killswitch.php

    r2361961 r2542245  
    11<?php /*
    22Plugin Name:  WP Killswitch
    3 Plugin URI:   http://graphicscove.com
    4 Description:  WP Killswitch lets you non-destructively white out a difficult client's website while this plugin is active.
    5 Version:      0.0.3
     3Plugin URI:   https://wpkillswitch.io
     4GitHub Plugin URI: https://github.com/graphicscove/wp-killswitch
     5GitHub Plugin URI: https://github.com/graphicscove/wp-killswitch
     6Description:  WP Killswitch lets you non-destructively white out a Wordpress website.
     7Version:      0.1.0
    68Author:       Steven Noble
    7 Author URI:   http://graphicscove.com
    8 License:      GPLv2 or later
     9Author URI:   https://graphicscove.com
    910*/
    1011
    11 /* Hides all content on the frontend when activated */
    12 add_action('wp_head','hook_killswitch');
     12// Load API
     13include( plugin_dir_path( __FILE__ ) . 'api/remote.php');
    1314
    14 function hook_killswitch()
    15 {
    16     $output="<style>body * { display: none !important; }</style>";
    17     echo $output;
    18 }
    19 
    20 /* Adds an administration notice for the client to contact the webmaster */
    21 function client_notice() {
    22     ?>
    23     <div class="error">
    24         <p>Warning: Your website is currently inaccessible, please contact your webmaster as soon as possible.</p>
    25     </div>
    26     <?php
    27 }
    28 add_action( 'admin_notices', 'client_notice' );
     15// Load includes
     16include( plugin_dir_path( __FILE__ ) . 'inc/frontend.php');
     17include( plugin_dir_path( __FILE__ ) . 'inc/admin-notice.php');
     18include( plugin_dir_path( __FILE__ ) . 'inc/hide-plugin.php');
Note: See TracChangeset for help on using the changeset viewer.