-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathquick-config.example.php
More file actions
92 lines (79 loc) · 3.37 KB
/
quick-config.example.php
File metadata and controls
92 lines (79 loc) · 3.37 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
/**
* QuickWP v2 - Main Configuration
*
* SETUP INSTRUCTIONS:
* 1. Copy this file to: quick-config.php
* 2. Edit the values below with your WordPress site details
* 3. Never commit quick-config.php to version control!
*/
return [
// ===========================================
// REST API ENDPOINTS
// ===========================================
// Your WordPress site REST API endpoints
'posts_endpoint' => 'https://your-site.com/wp-json/wp/v2/posts',
'pages_endpoint' => 'https://your-site.com/wp-json/wp/v2/pages',
'media_endpoint' => 'https://your-site.com/wp-json/wp/v2/media',
// Optional - if empty, will be derived from posts_endpoint
'categories_endpoint' => '',
'tags_endpoint' => '',
// Default CPT slug for the Custom Post Type tool
'cpt_default_slug' => 'post',
// ===========================================
// PAGE & POST TEMPLATES
// ===========================================
// Define available templates for quick selection
// Format: 'template-file.php' => 'Display Name'
// Leave empty to use text input instead of dropdown
'page_templates' => [
'' => '— Default Template —',
'template-full-width.php' => 'Full Width (No Sidebar)',
'template-blank.php' => 'Blank / Canvas',
'template-landing.php' => 'Landing Page',
'template-sidebar-left.php' => 'Sidebar Left',
'template-sidebar-right.php' => 'Sidebar Right',
'template-contact.php' => 'Contact Page',
'template-about.php' => 'About Page',
],
// Post templates (WordPress 4.7+ feature)
// Many themes don't support this - leave empty if not needed
'post_templates' => [
'' => '— Default Template —',
'single-full-width.php' => 'Full Width Post',
'single-no-sidebar.php' => 'No Sidebar',
'single-featured.php' => 'Featured Post',
],
// ===========================================
// WORDPRESS CREDENTIALS
// ===========================================
// Create an Application Password in WordPress:
// Users -> Your Profile -> Application Passwords
'wp_username' => 'your-wp-username',
'wp_app_password' => 'xxxx xxxx xxxx xxxx xxxx xxxx',
// Show auth fields in the web forms?
// true = show username/password inputs in forms
// false = hide fields, use only the values above
'show_auth_form' => true,
// ===========================================
// SSL & DEBUG
// ===========================================
// Keep true in production. Set false only for self-signed certs.
'verify_ssl' => true,
// Show extra debug info on errors
'debug_http' => false,
// ===========================================
// ACCESS PROTECTION FOR THIS TOOL
// ===========================================
// Protect these tools from unauthorized access
//
// 'none' = no protection (be careful!)
// 'basic' = HTTP Basic Auth (uses access_basic_user/password)
// 'token' = URL token (use ?token=your-token)
'access_mode' => 'none',
// For access_mode = 'basic'
'access_basic_user' => 'admin',
'access_basic_password' => 'change-this-password',
// For access_mode = 'token'
'access_token' => 'set-a-long-random-token-here',
];