-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdisabled-source-and-content-protection.php
53 lines (39 loc) · 1.59 KB
/
disabled-source-and-content-protection.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
/**
* Plugin Name: Disabled Source, Disabled Right Click and Content Protection
* Plugin URI: https://wordpress.org/plugins/disabled-source-disabled-right-click-and-content-protection/
* Description: Disabled Source(Ctrl+U), Disabled Right click, Disable F12 functional key, and Disable save the page(Ctrl+S) and Content Protection of your WordPress Website.
* Version: 1.4.4
* Requires at least: 4.7
* Tested up to: 6.6
* Requires PHP: 5.3
* Text Domain: disabled-source-disabled-right-click-and-content-protection
* Author: jahidcse
* Author URI: https://profiles.wordpress.org/jahidcse/
*/
// don't load directly
defined( 'ABSPATH' ) || exit;
//URL
define( 'JH_URL', plugin_dir_url( __FILE__ ) );
define( 'JH_PATH', plugin_dir_path( __FILE__ ) );
/**
* Functions include
*/
if ( file_exists( JH_PATH . 'includes/functions/functions.php' ) ) {
require_once JH_PATH . 'includes/functions/functions.php';
}
/**
* Admin Notice include
*/
if ( file_exists( JH_PATH . 'includes/functions/notice.php' ) ) {
require_once JH_PATH . 'includes/functions/notice.php';
}
/**
* Plugin Settings page
*/
add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ),'disablde_source_deshboard_settings');
function disablde_source_deshboard_settings( $links ) {
$link = sprintf( "<a href='%s' style='color:#2271b1;'>%s</a>", admin_url( 'admin.php?page=disabled-source-disabled-right-click-and-content-protection'), __( 'Settings', 'disabled-source-disabled-right-click-and-content-protection' ) );
array_push( $links, $link );
return $links;
}