Changeset 3442843
- Timestamp:
- 01/19/2026 10:51:04 PM (2 months ago)
- Location:
- rank-authority
- Files:
-
- 6 added
- 2 edited
-
tags/1.0.11 (added)
-
tags/1.0.11/assets (added)
-
tags/1.0.11/assets/icon.svg (added)
-
tags/1.0.11/rank-authority.php (added)
-
tags/1.0.11/readme.txt (added)
-
tags/1.0.11/uninstall.php (added)
-
trunk/rank-authority.php (modified) (4 diffs)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rank-authority/trunk/rank-authority.php
r3439796 r3442843 4 4 * Plugin URI: https://rankauthority.com/plugins/rankauthority 5 5 * Description: Secure API connector to publish posts / overwrite posts from the RA Dashboard to WordPress. 6 * Version: 1.0.1 06 * Version: 1.0.11 7 7 * Author: Rank Authority 8 8 * Author URI: https://rankauthority.com … … 673 673 $website_id = get_option($this->option_website_id); 674 674 $token = get_option($this->option_token); 675 $plugin_version = get_file_data(__FILE__, array('Version' => 'Version'), false)['Version'] ?? '1.0.1 0';675 $plugin_version = get_file_data(__FILE__, array('Version' => 'Version'), false)['Version'] ?? '1.0.11'; 676 676 677 677 ?> … … 1109 1109 } 1110 1110 1111 // Set meta description if provided 1112 if (!empty($params['meta_description'])) { 1113 $meta_description = sanitize_text_field($params['meta_description']); 1114 1115 // Support multiple SEO plugins 1116 // Yoast SEO 1117 update_post_meta($post_id, '_yoast_wpseo_metadesc', $meta_description); 1118 1119 // Rank Math 1120 update_post_meta($post_id, 'rank_math_description', $meta_description); 1121 1122 // All in One SEO 1123 update_post_meta($post_id, '_aioseo_description', $meta_description); 1124 1125 // Generic meta description (for custom themes/plugins) 1126 update_post_meta($post_id, '_meta_description', $meta_description); 1127 } 1128 1129 // Set focus keyphrase (keyword) if provided - Yoast SEO 1130 if (!empty($params['yoast_keyword'])) { 1131 $focus_keyword = sanitize_text_field($params['yoast_keyword']); 1132 update_post_meta($post_id, '_yoast_wpseo_focuskw', $focus_keyword); 1133 } 1134 1111 1135 $permalink = get_permalink($post_id); 1112 1136 … … 1190 1214 if (!empty($params['tags']) && is_array($params['tags'])) { 1191 1215 wp_set_post_tags($updated_id, $params['tags']); 1216 } 1217 1218 // Update meta description if provided 1219 if (isset($params['meta_description'])) { 1220 if (!empty($params['meta_description'])) { 1221 $meta_description = sanitize_text_field($params['meta_description']); 1222 1223 // Support multiple SEO plugins 1224 // Yoast SEO 1225 update_post_meta($updated_id, '_yoast_wpseo_metadesc', $meta_description); 1226 1227 // Rank Math 1228 update_post_meta($updated_id, 'rank_math_description', $meta_description); 1229 1230 // All in One SEO 1231 update_post_meta($updated_id, '_aioseo_description', $meta_description); 1232 1233 // Generic meta description (for custom themes/plugins) 1234 update_post_meta($updated_id, '_meta_description', $meta_description); 1235 } else { 1236 // If description is empty, delete meta descriptions 1237 delete_post_meta($updated_id, '_yoast_wpseo_metadesc'); 1238 delete_post_meta($updated_id, 'rank_math_description'); 1239 delete_post_meta($updated_id, '_aioseo_description'); 1240 delete_post_meta($updated_id, '_meta_description'); 1241 } 1242 } 1243 1244 // Update focus keyphrase (keyword) if provided - Yoast SEO 1245 if (isset($params['yoast_keyword'])) { 1246 if (!empty($params['yoast_keyword'])) { 1247 $focus_keyword = sanitize_text_field($params['yoast_keyword']); 1248 update_post_meta($updated_id, '_yoast_wpseo_focuskw', $focus_keyword); 1249 } else { 1250 // If keyword is empty, delete focus keyphrase 1251 delete_post_meta($updated_id, '_yoast_wpseo_focuskw'); 1252 } 1192 1253 } 1193 1254 -
rank-authority/trunk/readme.txt
r3439796 r3442843 5 5 Tested up to: 6.9 6 6 Requires PHP: 7.4 7 Stable tag: 1.0.1 07 Stable tag: 1.0.11 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 136 136 == Changelog == 137 137 138 = 1.0.11 = 139 * Added support for meta_description parameter in publish and update post endpoints 140 * Added support for keyword parameter to set Yoast SEO focus keyphrase 141 * Enhanced SEO plugin compatibility (Yoast SEO, Rank Math, All in One SEO) 142 * Improved API functionality with SEO metadata support 143 138 144 = 1.0.10 = 139 145 * Moved version information from header to footer above "Powered by" text … … 201 207 == Upgrade Notice == 202 208 209 = 1.0.11 = 210 Added SEO metadata support - now you can set meta descriptions and focus keywords via API. 211 203 212 = 1.0.10 = 204 213 Improved UI layout - version information now displayed in footer for better visual hierarchy.
Note: See TracChangeset
for help on using the changeset viewer.