Project Array ($wtgcsv_project_array)

0 Posted by
Posted in Hacking

The aim of this page is to help anyone who wants to hack the $wtgcsv_project_array and be aware of all possible array nodes. Not all possible values are added to the array straight away, so assuming that you can add your own values to it without knowing much about what WordPress CSV Importer could add too the array, will cause problems.

About The Project Array

For WordPress CSV Importer to offer auto-blogging and periodically create posts. It needs to store a lot of settings. Settings are stored in the wp_option table in the form of PHP array’s. There are multiple records created to hold different types of settings i.e. a record with the key name wtgcsv_schedule will hold schedule times, days and history. We have one of these records per project. The paid edition allows users to create multiple projects, this is important to a lot of auto-bloggers. WordPress CSV Importer does not mix project data in any way, if it be settings or imported data from CSV files. A projects settings are stored in a record in the wp_options table that will look something like “wtgcsv_profc45vxs3k9″. First there is wtgcsv_pro, pro short for project, then a random project code appended to the end. This is how you can locate a project array should you ever need to.

Array Dump 22nd July 2012

Please request a new array dump anytime. Over 2012 and 2013 it will grow. You can view your own projects array dump in the plugin itself when developer mode is activated. Developer mode displays more technical information.

array(17) {
  ["name"]=>
  string(11) "MultiTable5"
  ["type"]=>
  string(4) "post"
  ["tables"]=>
  array(3) {
    [0]=>
    string(11) "wp_comments"
    [1]=>
    string(11) "wp_postmeta"
    [2]=>
    string(8) "wp_posts"
  }
  ["stats"]=>
  array(6) {
    ["creationevents"]=>
    int(0)
    ["updateevents"]=>
    int(0)
    ["postscreated"]=>
    int(0)
    ["postsupdated"]=>
    int(0)
    ["pagescreated"]=>
    int(0)
    ["pagesupdated"]=>
    int(0)
  }
  ["code"]=>
  string(9) "pro5gembc"
  ["mappingmethod"]=>
  string(15) "singlekeycolumn"
  ["maintable"]=>
  string(8) "wp_posts"
  ["default_contenttemplate_id"]=>
  string(3) "106"
  ["contenttemplaterules"]=>
  array(1) {
    ["byvalue"]=>
    array(1) {
      [0]=>
      array(4) {
        ["table_name"]=>
        string(11) "wp_comments"
        ["column_name"]=>
        string(15) "comment_post_ID"
        ["trigger_value"]=>
        string(8) "grtvertv"
        ["template_id"]=>
        string(3) "104"
      }
    }
  }
  ["default_titletemplate_id"]=>
  string(2) "55"
  ["defaultposttype"]=>
  string(4) "page"
  ["posttyperules"]=>
  array(1) {
    ["byvalue"]=>
    array(1) {
      [0]=>
      array(4) {
        ["table_name"]=>
        string(11) "wp_comments"
        ["column_name"]=>
        string(14) "comment_author"
        ["trigger_value"]=>
        string(10) "56vg45645b"
        ["post_type"]=>
        string(4) "post"
      }
    }
  }
  ["dates"]=>
  array(4) {
    ["date_column"]=>
    array(2) {
      ["table_name"]=>
      string(11) "wp_comments"
      ["column_name"]=>
      string(14) "comment_author"
    }
    ["currentmethod"]=>
    string(6) "random"
    ["increment"]=>
    array(3) {
      ["start"]=>
      string(10) "07/25/2012"
      ["short"]=>
      string(4) "7856"
      ["long"]=>
      string(5) "20986"
    }
    ["random"]=>
    array(2) {
      ["start"]=>
      string(10) "07/24/2012"
      ["end"]=>
      string(10) "07/27/2012"
    }
  }
  ["custom_fields"]=>
  array(2) {
    ["basic"]=>
    array(1) {
      [0]=>
      array(3) {
        ["table_name"]=>
        string(11) "wp_comments"
        ["column_name"]=>
        string(14) "comment_author"
        ["meta_key"]=>
        string(16) "basiccustomfield"
      }
    }
    ["advanced"]=>
    array(1) {
      [0]=>
      array(3) {
        ["template_id"]=>
        string(3) "104"
        ["meta_key"]=>
        string(19) "advancedcustomfield"
        ["update"]=>
        string(2) "on"
      }
    }
  }
  ["categories"]=>
  array(6) {
    ["default"]=>
    string(1) "1"
    ["level1"]=>
    array(4) {
      ["table"]=>
      string(11) "wp_comments"
      ["column"]=>
      string(13) "comment_agent"
      ["description"]=>
      string(3) "104"
      ["mapping"]=>
      array(1) {
        ["rtbrtb"]=>
        string(1) "1"
      }
    }
    ["level2"]=>
    array(4) {
      ["table"]=>
      string(11) "wp_comments"
      ["column"]=>
      string(20) "comment_author_email"
      ["description"]=>
      string(3) "104"
      ["mapping"]=>
      array(1) {
        ["ertvertb"]=>
        string(1) "1"
      }
    }
    ["level3"]=>
    array(4) {
      ["table"]=>
      string(11) "wp_comments"
      ["column"]=>
      string(7) "user_id"
      ["description"]=>
      string(3) "104"
      ["mapping"]=>
      array(1) {
        ["rtbyrtby"]=>
        string(1) "1"
      }
    }
    ["level4"]=>
    array(4) {
      ["table"]=>
      string(8) "wp_posts"
      ["column"]=>
      string(6) "pinged"
      ["description"]=>
      string(2) "54"
      ["mapping"]=>
      array(1) {
        ["yrbtyr"]=>
        string(1) "1"
      }
    }
    ["level5"]=>
    array(4) {
      ["table"]=>
      string(8) "wp_posts"
      ["column"]=>
      string(7) "to_ping"
      ["description"]=>
      string(2) "56"
      ["mapping"]=>
      array(1) {
        ["ytuntyun"]=>
        string(1) "1"
      }
    }
  }
  ["updating"]=>
  array(1) {
    ["content"]=>
    array(1) {
      ["settings"]=>
      array(5) {
        ["switch"]=>
        string(2) "on"
        ["public"]=>
        string(2) "on"
        ["speed"]=>
        string(2) "on"
        ["old"]=>
        string(2) "on"
        ["oldmethod"]=>
        string(11) "customfield"
      }
    }
  }
  ["tags"]=>
  array(3) {
    ["default"]=>
    array(2) {
      ["table"]=>
      string(11) "wp_comments"
      ["column"]=>
      string(14) "comment_author"
    }
    ["method"]=>
    string(7) "premade"
    ["rules"]=>
    array(4) {
      ["numericterms"]=>
      string(3) "off"
      ["excluded"]=>
      array(2) {
        [0]=>
        string(4) "test"
        [1]=>
        string(0) ""
      }
      ["tagsperpost"]=>
      string(2) "55"
      ["tagstringlength"]=>
      string(2) "45"
    }
  }
}

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>