Changeset 3392362
- Timestamp:
- 11/09/2025 09:15:26 AM (5 months ago)
- Location:
- blogify-ai/trunk
- Files:
-
- 5 edited
-
README.txt (modified) (2 diffs)
-
blogify-ai.php (modified) (2 diffs)
-
changelog.md (modified) (1 diff)
-
core/hooks.php (modified) (4 diffs)
-
uninstall.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
blogify-ai/trunk/README.txt
r3306414 r3392362 4 4 Requires at least: 6.0 5 5 Tested up to: 6.8 6 Stable tag: 1. 2.16 Stable tag: 1.3.0 7 7 Requires PHP: 7.4 8 8 License: GPLv2 or later … … 94 94 == Changelog == 95 95 96 = 1.3.0 = 97 98 * Added option to hide Blogify Menu Admin Pages via Settings Page 99 96 100 = 1.2.1 = 97 101 -
blogify-ai/trunk/blogify-ai.php
r3306370 r3392362 16 16 * Plugin URI: https://blogify.ai/ 17 17 * Description: Seamlessly publish AI-generated blog posts from Blogify.ai to your WordPress site with ease, enhancing content management and SEO optimization in a few clicks. 18 * Version: 1. 2.118 * Version: 1.3.0 19 19 * Requires at least: 6.0 20 20 * Requires PHP: 7.4 … … 51 51 DEFINE('BLOGIFY_ACCESS_TOKEN_OPTION_HANDLE','blogify_access_token'); 52 52 DEFINE('BLOGIFY_CLIENT_SECRET_OPTION_HANDLE', 'blogify_client_secret'); 53 DEFINE('BLOGIFY_DISPLAY_ADMIN_MENU_PAGES_HANDLE', 'blogify_display_admin_menu_pages'); 53 54 54 55 // Load core functionality -
blogify-ai/trunk/changelog.md
r3306414 r3392362 6 6 and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). 7 7 8 ## [1.3.0] - 2025-Nov-9 9 10 ## Fixed 11 12 - When deleting the plugin the client secret option's handle was wrong 13 8 14 ## [1.2.1] - 2025-June-4 15 16 ## Added 17 18 - Added option to hide Blogify Menu Admin Pages via Settings Page 9 19 10 20 ## Fixed -
blogify-ai/trunk/core/hooks.php
r3306368 r3392362 38 38 register_meta_tags_hook(); 39 39 register_style_hooks(); 40 register_admin_menu_hooks(); 41 } 42 40 if(get_option(BLOGIFY_DISPLAY_ADMIN_MENU_PAGES_HANDLE, true)) { 41 register_admin_menu_hooks(); 42 } 43 } 44 43 45 register_deactivation_hooks(); 44 46 } … … 180 182 'type' => 'string', 181 183 'sanitize_callback' => function ($value) { 182 $message = "Connected to Blogify.ai successfully ✅" . "<br />" . "<a href='" 184 if($value === get_option(BLOGIFY_ACCESS_TOKEN_OPTION_HANDLE, null)) { 185 return sanitize_text_field($value); 186 } 187 $message = "Connected to Blogify.ai successfully ✅" ; 188 $dashboard_link = "<br />" . "<a href='" 183 189 . esc_url(get_admin_url(null, 'admin.php?page=blogify-ai')) 184 190 . "'>Head over to Blogify-AI Dashboard</a>"; … … 190 196 BLOGIFY_ACCESS_TOKEN_OPTION_HANDLE, 191 197 'token-success', 192 $message,198 get_option(BLOGIFY_DISPLAY_ADMIN_MENU_PAGES_HANDLE) ? $message . $dashboard_link : $message, 193 199 'success', 194 200 ); … … 255 261 ] 256 262 ); 263 264 // Register the display option and create its own settings section 265 register_setting('blogify', BLOGIFY_DISPLAY_ADMIN_MENU_PAGES_HANDLE, [ 266 'type' => 'boolean', 267 'sanitize_callback' => function ($value) { 268 return (bool) $value; 269 }, 270 'default' => true, 271 'show_in_rest' => false, 272 ]); 273 274 add_settings_section( 275 'blogify_display_section', 276 'Display Settings', 277 function () { 278 echo '<p>Configure if Blogify admin pages are displayed in the WordPress admin menu.</p>'; 279 }, 280 'blogify' 281 ); 282 283 add_settings_field( 284 BLOGIFY_DISPLAY_ADMIN_MENU_PAGES_HANDLE, 285 'Display Admin Menu Pages', 286 function () { 287 $option = get_option(BLOGIFY_DISPLAY_ADMIN_MENU_PAGES_HANDLE, true); 288 ?> 289 <input type='checkbox' id='<?php echo esc_attr(BLOGIFY_DISPLAY_ADMIN_MENU_PAGES_HANDLE); ?>' name='<?php echo esc_attr(BLOGIFY_DISPLAY_ADMIN_MENU_PAGES_HANDLE); ?>' <?php checked($option, true); ?> /> 290 <p class="description">Uncheck to hide Blogify-AI admin menu pages.</p> 291 <?php 292 }, 293 'blogify', 294 'blogify_display_section', 295 [ 296 'label_for' => BLOGIFY_DISPLAY_ADMIN_MENU_PAGES_HANDLE, 297 ] 298 ); 299 257 300 }); 258 301 } -
blogify-ai/trunk/uninstall.php
r3306414 r3392362 4 4 die; 5 5 } 6 delete_option('blogify-client-secret'); 6 delete_option('blogify_client_secret'); 7 delete_option('blogify_display_admin_menu_pages');
Note: See TracChangeset
for help on using the changeset viewer.