Plugin Directory

Changeset 2918170


Ignore:
Timestamp:
05/28/2023 06:08:53 AM (3 years ago)
Author:
zuda
Message:

Now you can add seo descriptions to posts and pages using SEO & redirect. No clunky user interface, you just type your SEO description hit save draft or publish and the SEO description is saved.

Location:
redirect-editor/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • redirect-editor/trunk/readme.txt

    r2918111 r2918170  
    5656It adds in some protection from certain SEO software that has flaws which we patched.
    5757== Screenshots ==
     58== 3.1 ==
     59you 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!
    5860== 3.0.2 ==
    5961Security enhanced in conjunction with Planet Zuda and AI
  • redirect-editor/trunk/redirect-editor.php

    r2918111 r2918170  
    22 
    33/*
    4 Plugin Name: Search Engine Optimization Redirect Editor
    5 Version: 3.0.2
     4Plugin Name: SEO & Redirect Editor
     5Version: 3.1
    66Plugin 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.
     7Description: 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.
    88Author: Planet Zuda
    99Author URI: https://planetzuda.com
     
    3434{
    3535
     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
    3672    const NOTICES_OPTION_KEY = 'airtight_notices';
    3773
     
    4884
    4985
    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    }
    5194    public function __construct()
    5295    {
    53 
     96       
     97add_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 
    54101        // TODO:Check for instanceId if it is not present, generate one and save it to settings.
    55102     
Note: See TracChangeset for help on using the changeset viewer.