We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ed11fc commit c593b7dCopy full SHA for c593b7d
access/tsf-super-admin-headless.php
@@ -0,0 +1,25 @@
1
+<?php
2
+/**
3
+ * Plugin Name: The SEO Framework - Force admin display level (Headless Mode)
4
+ * Plugin URI: https://theseoframework.com/
5
+ * Description: Denies TSF's admin display and edit capability to anyone but super admins using Headless Mode.
6
+ * Version: 1.0.0
7
+ * Author: Sybre Waaijer
8
+ * Author URI: https://theseoframework.com/
9
+ * License: GPLv3
10
+ * Requires at least: 5.9
11
+ * Requires PHP: 7.4.0
12
+ * Requires Plugins: autodescription
13
+ *
14
+ * @package My_The_SEO_Framework\AdminDisplayLevel
15
+ */
16
+
17
+add_action(
18
+ 'plugins_loaded',
19
+ function () {
20
+ if ( is_admin() && ! is_super_admin() )
21
+ defined( 'THE_SEO_FRAMEWORK_HEADLESS' )
22
+ or define( 'THE_SEO_FRAMEWORK_HEADLESS', true );
23
+ },
24
+ 0,
25
+);
0 commit comments