Changeset 2918170
- Timestamp:
- 05/28/2023 06:08:53 AM (3 years ago)
- Location:
- redirect-editor/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (1 diff)
-
redirect-editor.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
redirect-editor/trunk/readme.txt
r2918111 r2918170 56 56 It adds in some protection from certain SEO software that has flaws which we patched. 57 57 == Screenshots == 58 == 3.1 == 59 you can now add seo descriptions to posts and pages and you don't need to hit any extra buttons to save your seo description. When you save draft or hit publish the seo description is also published! 58 60 == 3.0.2 == 59 61 Security enhanced in conjunction with Planet Zuda and AI -
redirect-editor/trunk/redirect-editor.php
r2918111 r2918170 2 2 3 3 /* 4 Plugin Name: S earch Engine OptimizationRedirect Editor5 Version: 3. 0.24 Plugin Name: SEO & Redirect Editor 5 Version: 3.1 6 6 Plugin URI: https://planetzuda.com 7 Description: If you need to redirect whether for search engine optimization purposes or otherwise you can use our app to redirect to any page. We provide a direct link to your xml sitemap which you can submit to search engines manually. We protect you against popular SEO plugins that damage your rankings by making your sitemap invisible to Google's bots by telling them to not index it, which is a free and automatically applied feature. More search features are coming. Our redirect editor is extremely useful and highly secure, which has been tested in bug bounties by white hat hackers, including our security and seo company.7 Description: If you need to add seo description to your sites posts or pages so it can be seen easier by search engines, like Google or if you need to 301 redirect a broken link to a new page for search engine optimization purposes, decrease your bounce rate and make a better site expecrence, this is the app you need you can use our app to redirect to any page. We make it easy to submit your xml map to search engines manually from our plugin. We patch flawed SEO plugins, automatically. More search features are coming. Our redirect editor is extremely useful and highly secure, which has been tested in bug bounties by white hat hackers, including our security and seo company. Additionally it has been enhanced yet again by the security company Planet Zuda in conjunction with AI. 8 8 Author: Planet Zuda 9 9 Author URI: https://planetzuda.com … … 34 34 { 35 35 36 37 public function add_seo_meta_box() { 38 add_meta_box( 39 'seo_meta_box', 40 'SEO Description', 41 array($this, 'render_seo_description_meta_box'), 42 'post', 43 'advanced', 44 'default' 45 ); 46 } 47 48 public function render_seo_description_meta_box($post) { 49 wp_nonce_field('seo_meta_box', 'seo_meta_box_nonce'); 50 $seo_description = get_post_meta($post->ID, 'seo_description', true); 51 ?> 52 <textarea name="seo_description" rows="5" style="width:100%;"><?php echo esc_textarea($seo_description); ?></textarea> 53 <?php 54 } 55 56 public function save_seo_meta_data($post_id) { 57 if (!isset($_POST['seo_meta_box_nonce']) || !wp_verify_nonce($_POST['seo_meta_box_nonce'], 'seo_meta_box')) { 58 return; 59 } 60 if (defined('DOING_AUTOSAVE') && DOING_AUTOSAVE) { 61 return; 62 } 63 if (!current_user_can('edit_post', $post_id)) { 64 return; 65 } 66 if (isset($_POST['seo_description'])) { 67 update_post_meta($post_id, 'seo_description', sanitize_text_field($_POST['seo_description'])); 68 } 69 } 70 71 36 72 const NOTICES_OPTION_KEY = 'airtight_notices'; 37 73 … … 48 84 49 85 50 86 public function add_custom_meta_tags() { 87 if (is_single() || is_page()) { 88 $description = get_post_meta(get_the_ID(), 'seo_description', true); 89 if (!empty($description)) { 90 echo '<meta name="description" content="' . esc_attr($description) . '">'; 91 } 92 } 93 } 51 94 public function __construct() 52 95 { 53 96 97 add_action('wp_head', array($this, 'add_custom_meta_tags')); 98 add_action('add_meta_boxes', array($this, 'add_seo_meta_box')); 99 add_action('save_post', array($this, 'save_seo_meta_data')); 100 54 101 // TODO:Check for instanceId if it is not present, generate one and save it to settings. 55 102
Note: See TracChangeset
for help on using the changeset viewer.