Browse Source

Modify: option page

Mozahidur Rahman 1 year ago
parent
commit
60c58c8e70
2 changed files with 62 additions and 1 deletions
  1. 61 0
      inc/acf-json/group_642c43069a7c8.json
  2. 1 1
      inc/acf-settings.php

+ 61 - 0
inc/acf-json/group_642c43069a7c8.json

@@ -0,0 +1,61 @@
+{
+    "key": "group_642c43069a7c8",
+    "title": "General Theme Settings",
+    "fields": [
+        {
+            "key": "field_642c4307f3843",
+            "label": "Header Setting",
+            "name": "",
+            "aria-label": "",
+            "type": "message",
+            "instructions": "",
+            "required": 0,
+            "conditional_logic": 0,
+            "wrapper": {
+                "width": "",
+                "class": "",
+                "id": ""
+            },
+            "message": "",
+            "new_lines": "wpautop",
+            "esc_html": 0
+        },
+        {
+            "key": "field_642c43522e9ee",
+            "label": "Footer Settings",
+            "name": "",
+            "aria-label": "",
+            "type": "message",
+            "instructions": "",
+            "required": 0,
+            "conditional_logic": 0,
+            "wrapper": {
+                "width": "",
+                "class": "",
+                "id": ""
+            },
+            "message": "",
+            "new_lines": "wpautop",
+            "esc_html": 0
+        }
+    ],
+    "location": [
+        [
+            {
+                "param": "options_page",
+                "operator": "==",
+                "value": "uiu-cse-general-settings"
+            }
+        ]
+    ],
+    "menu_order": 0,
+    "position": "normal",
+    "style": "default",
+    "label_placement": "top",
+    "instruction_placement": "label",
+    "hide_on_screen": "",
+    "active": true,
+    "description": "",
+    "show_in_rest": 0,
+    "modified": 1680622432
+}

+ 1 - 1
inc/acf-settings.php

@@ -1,7 +1,7 @@
 <?php
 
 // Hide ACF field group menu item
-// add_filter('acf/settings/show_admin', '__return_false');
+add_filter('acf/settings/show_admin', '__return_false');
 
 // Customize ACF path
 add_filter('acf/settings/path', 'my_acf_settings_path');