Forum Replies Created

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter jdku

    (@jdku)

    Hi All,

    I did actually manage to hide them I just haven’t had chance to post, comment out the following lines in the file “all_in_one_seo_pack.php”:

    ////////new stuff
    //add_action('quick_edit_custom_box','mys',10,2);
    function mys($col, $type){
     ?>
     <fieldset class="inline-edit-col-right"><div class="inline-edit-col">
         <div class="inline-edit-group">
             <label class="alignleft">
                 <input type="checkbox" value="1" name="aioseops" id="aioseos_check">
                 <span class="checkbox-title">stuff</span>
             </label>
         </div>
     </fieldset>
     <?php
    }
    
    add_action('load-edit.php','addmycolumns',1);
    
    function addmycolumns(){
     $aioseop_options = get_option('aioseop_options');
     $aiosp_posttypecolumns = $aioseop_options['aiosp_posttypecolumns'];
    //print_r($aiosp_posttypecolumns);
    
     if ( !isset($_GET['post_type']) ) $post_type = 'post';
      else    $post_type = $_GET['post_type'];
    
      if(is_array($aiosp_posttypecolumns) && in_array($post_type,$aiosp_posttypecolumns)) {
       if($post_type == 'page'){
        add_action('manage_pages_custom_column', 'aioseop_mrt_pccolumn', 10, 2);
        add_filter('manage_pages_columns', 'aioseop_mrt_pcolumns');
    
       }else{
        add_action('manage_posts_custom_column', 'aioseop_mrt_pccolumn', 10, 2);
        add_filter('manage_posts_columns', 'aioseop_mrt_pcolumns');
        }
       }
      }
    
    function aioseop_mrt_pcolumns($aioseopc) {
        $aioseopc['seotitle'] = __('SEO Title');
        $aioseopc['seokeywords'] = __('SEO Keywords');
        $aioseopc['seodesc'] = __('SEO Description');
        return $aioseopc;
    }
    
    function aioseop_mrt_pccolumn($aioseopcn, $aioseoppi) {
        if( $aioseopcn == 'seotitle' ) {
            echo get_post_meta($aioseoppi,'_aioseop_title',TRUE);
        }
        if( $aioseopcn == 'seokeywords' ) {
            echo get_post_meta($aioseoppi,'_aioseop_keywords',TRUE);
        }
        if( $aioseopcn == 'seodesc' ) {
            echo get_post_meta($aioseoppi,'_aioseop_description',TRUE);
        }
    }
    ///////end new stuff
    Thread Starter jdku

    (@jdku)

    Thanks James. Is that the only option? Only reason i say that is the site is live, has been for some time, and it relies heavily on the plugins and disabling them all will mean taking the site down, something i’m keen to avoid. Guess i could put in an all nighter if need be!

    Seems strange it can suddenly happen when nothing has changed! Sounds like Microsoft Windows! ??

Viewing 2 replies - 16 through 17 (of 17 total)