Advertisement
Guest User

wp_insert_post $wpdb return, working

a guest
Sep 13th, 2021
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 18.21 KB | None | 0 0
  1. wpdb Object
  2. (
  3.     [show_errors] => 1
  4.     [suppress_errors] =>
  5.     [last_error] =>
  6.     [num_queries] => 18
  7.     [num_rows] => 0
  8.     [rows_affected] => 1
  9.     [insert_id] => 13
  10.     [last_query] => INSERT INTO `wp_posts` (`post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_content_filtered`, `post_title`, `post_excerpt`, `post_status`, `post_type`, `comment_status`, `ping_status`, `post_password`, `post_name`, `to_ping`, `pinged`, `post_modified`, `post_modified_gmt`, `post_parent`, `menu_order`, `post_mime_type`, `guid`) VALUES (1, '2021-09-13 20:34:40', '2021-09-13 20:34:40', '', '', 'test', '', 'publish', 'post', 'open', 'open', '', 'test-6', '', '', '2021-09-13 20:34:40', '2021-09-13 20:34:40', 0, 0, '', '')
  11.     [last_result] => Array
  12.         (
  13.         )
  14.  
  15.     [result:protected] => 1
  16.     [col_meta:protected] => Array
  17.         (
  18.             [wp_posts] => Array
  19.                 (
  20.                     [id] => stdClass Object
  21.                         (
  22.                             [Field] => ID
  23.                             [Type] => bigint(20) unsigned
  24.                             [Collation] =>
  25.                             [Null] => NO
  26.                             [Key] => PRI
  27.                             [Default] =>
  28.                             [Extra] => auto_increment
  29.                             [Privileges] => select,insert,update,references
  30.                             [Comment] =>
  31.                         )
  32.  
  33.                     [post_author] => stdClass Object
  34.                         (
  35.                             [Field] => post_author
  36.                             [Type] => bigint(20) unsigned
  37.                             [Collation] =>
  38.                             [Null] => NO
  39.                             [Key] => MUL
  40.                             [Default] => 0
  41.                             [Extra] =>
  42.                             [Privileges] => select,insert,update,references
  43.                             [Comment] =>
  44.                         )
  45.  
  46.                     [post_date] => stdClass Object
  47.                         (
  48.                             [Field] => post_date
  49.                             [Type] => datetime
  50.                             [Collation] =>
  51.                             [Null] => NO
  52.                             [Key] =>
  53.                             [Default] => 0000-00-00 00:00:00
  54.                             [Extra] =>
  55.                             [Privileges] => select,insert,update,references
  56.                             [Comment] =>
  57.                         )
  58.  
  59.                     [post_date_gmt] => stdClass Object
  60.                         (
  61.                             [Field] => post_date_gmt
  62.                             [Type] => datetime
  63.                             [Collation] =>
  64.                             [Null] => NO
  65.                             [Key] =>
  66.                             [Default] => 0000-00-00 00:00:00
  67.                             [Extra] =>
  68.                             [Privileges] => select,insert,update,references
  69.                             [Comment] =>
  70.                         )
  71.  
  72.                     [post_content] => stdClass Object
  73.                         (
  74.                             [Field] => post_content
  75.                             [Type] => longtext
  76.                             [Collation] => utf8mb4_unicode_ci
  77.                             [Null] => NO
  78.                             [Key] =>
  79.                             [Default] =>
  80.                             [Extra] =>
  81.                             [Privileges] => select,insert,update,references
  82.                             [Comment] =>
  83.                         )
  84.  
  85.                     [post_title] => stdClass Object
  86.                         (
  87.                             [Field] => post_title
  88.                             [Type] => text
  89.                             [Collation] => utf8mb4_unicode_ci
  90.                             [Null] => NO
  91.                             [Key] =>
  92.                             [Default] =>
  93.                             [Extra] =>
  94.                             [Privileges] => select,insert,update,references
  95.                             [Comment] =>
  96.                         )
  97.  
  98.                     [post_excerpt] => stdClass Object
  99.                         (
  100.                             [Field] => post_excerpt
  101.                             [Type] => text
  102.                             [Collation] => utf8mb4_unicode_ci
  103.                             [Null] => NO
  104.                             [Key] =>
  105.                             [Default] =>
  106.                             [Extra] =>
  107.                             [Privileges] => select,insert,update,references
  108.                             [Comment] =>
  109.                         )
  110.  
  111.                     [post_status] => stdClass Object
  112.                         (
  113.                             [Field] => post_status
  114.                             [Type] => varchar(20)
  115.                             [Collation] => utf8mb4_unicode_ci
  116.                             [Null] => NO
  117.                             [Key] =>
  118.                             [Default] => publish
  119.                             [Extra] =>
  120.                             [Privileges] => select,insert,update,references
  121.                             [Comment] =>
  122.                         )
  123.  
  124.                     [comment_status] => stdClass Object
  125.                         (
  126.                             [Field] => comment_status
  127.                             [Type] => varchar(20)
  128.                             [Collation] => utf8mb4_unicode_ci
  129.                             [Null] => NO
  130.                             [Key] =>
  131.                             [Default] => open
  132.                             [Extra] =>
  133.                             [Privileges] => select,insert,update,references
  134.                             [Comment] =>
  135.                         )
  136.  
  137.                     [ping_status] => stdClass Object
  138.                         (
  139.                             [Field] => ping_status
  140.                             [Type] => varchar(20)
  141.                             [Collation] => utf8mb4_unicode_ci
  142.                             [Null] => NO
  143.                             [Key] =>
  144.                             [Default] => open
  145.                             [Extra] =>
  146.                             [Privileges] => select,insert,update,references
  147.                             [Comment] =>
  148.                         )
  149.  
  150.                     [post_password] => stdClass Object
  151.                         (
  152.                             [Field] => post_password
  153.                             [Type] => varchar(255)
  154.                             [Collation] => utf8mb4_unicode_ci
  155.                             [Null] => NO
  156.                             [Key] =>
  157.                             [Default] =>
  158.                             [Extra] =>
  159.                             [Privileges] => select,insert,update,references
  160.                             [Comment] =>
  161.                         )
  162.  
  163.                     [post_name] => stdClass Object
  164.                         (
  165.                             [Field] => post_name
  166.                             [Type] => varchar(200)
  167.                             [Collation] => utf8mb4_unicode_ci
  168.                             [Null] => NO
  169.                             [Key] => MUL
  170.                             [Default] =>
  171.                             [Extra] =>
  172.                             [Privileges] => select,insert,update,references
  173.                             [Comment] =>
  174.                         )
  175.  
  176.                     [to_ping] => stdClass Object
  177.                         (
  178.                             [Field] => to_ping
  179.                             [Type] => text
  180.                             [Collation] => utf8mb4_unicode_ci
  181.                             [Null] => NO
  182.                             [Key] =>
  183.                             [Default] =>
  184.                             [Extra] =>
  185.                             [Privileges] => select,insert,update,references
  186.                             [Comment] =>
  187.                         )
  188.  
  189.                     [pinged] => stdClass Object
  190.                         (
  191.                             [Field] => pinged
  192.                             [Type] => text
  193.                             [Collation] => utf8mb4_unicode_ci
  194.                             [Null] => NO
  195.                             [Key] =>
  196.                             [Default] =>
  197.                             [Extra] =>
  198.                             [Privileges] => select,insert,update,references
  199.                             [Comment] =>
  200.                         )
  201.  
  202.                     [post_modified] => stdClass Object
  203.                         (
  204.                             [Field] => post_modified
  205.                             [Type] => datetime
  206.                             [Collation] =>
  207.                             [Null] => NO
  208.                             [Key] =>
  209.                             [Default] => 0000-00-00 00:00:00
  210.                             [Extra] =>
  211.                             [Privileges] => select,insert,update,references
  212.                             [Comment] =>
  213.                         )
  214.  
  215.                     [post_modified_gmt] => stdClass Object
  216.                         (
  217.                             [Field] => post_modified_gmt
  218.                             [Type] => datetime
  219.                             [Collation] =>
  220.                             [Null] => NO
  221.                             [Key] =>
  222.                             [Default] => 0000-00-00 00:00:00
  223.                             [Extra] =>
  224.                             [Privileges] => select,insert,update,references
  225.                             [Comment] =>
  226.                         )
  227.  
  228.                     [post_content_filtered] => stdClass Object
  229.                         (
  230.                             [Field] => post_content_filtered
  231.                             [Type] => longtext
  232.                             [Collation] => utf8mb4_unicode_ci
  233.                             [Null] => NO
  234.                             [Key] =>
  235.                             [Default] =>
  236.                             [Extra] =>
  237.                             [Privileges] => select,insert,update,references
  238.                             [Comment] =>
  239.                         )
  240.  
  241.                     [post_parent] => stdClass Object
  242.                         (
  243.                             [Field] => post_parent
  244.                             [Type] => bigint(20) unsigned
  245.                             [Collation] =>
  246.                             [Null] => NO
  247.                             [Key] => MUL
  248.                             [Default] => 0
  249.                             [Extra] =>
  250.                             [Privileges] => select,insert,update,references
  251.                             [Comment] =>
  252.                         )
  253.  
  254.                     [guid] => stdClass Object
  255.                         (
  256.                             [Field] => guid
  257.                             [Type] => varchar(255)
  258.                             [Collation] => utf8mb4_unicode_ci
  259.                             [Null] => NO
  260.                             [Key] =>
  261.                             [Default] =>
  262.                             [Extra] =>
  263.                             [Privileges] => select,insert,update,references
  264.                             [Comment] =>
  265.                         )
  266.  
  267.                     [menu_order] => stdClass Object
  268.                         (
  269.                             [Field] => menu_order
  270.                             [Type] => int(11)
  271.                             [Collation] =>
  272.                             [Null] => NO
  273.                             [Key] =>
  274.                             [Default] => 0
  275.                             [Extra] =>
  276.                             [Privileges] => select,insert,update,references
  277.                             [Comment] =>
  278.                         )
  279.  
  280.                     [post_type] => stdClass Object
  281.                         (
  282.                             [Field] => post_type
  283.                             [Type] => varchar(20)
  284.                             [Collation] => utf8mb4_unicode_ci
  285.                             [Null] => NO
  286.                             [Key] => MUL
  287.                             [Default] => post
  288.                             [Extra] =>
  289.                             [Privileges] => select,insert,update,references
  290.                             [Comment] =>
  291.                         )
  292.  
  293.                     [post_mime_type] => stdClass Object
  294.                         (
  295.                             [Field] => post_mime_type
  296.                             [Type] => varchar(100)
  297.                             [Collation] => utf8mb4_unicode_ci
  298.                             [Null] => NO
  299.                             [Key] =>
  300.                             [Default] =>
  301.                             [Extra] =>
  302.                             [Privileges] => select,insert,update,references
  303.                             [Comment] =>
  304.                         )
  305.  
  306.                     [comment_count] => stdClass Object
  307.                         (
  308.                             [Field] => comment_count
  309.                             [Type] => bigint(20)
  310.                             [Collation] =>
  311.                             [Null] => NO
  312.                             [Key] =>
  313.                             [Default] => 0
  314.                             [Extra] =>
  315.                             [Privileges] => select,insert,update,references
  316.                             [Comment] =>
  317.                         )
  318.  
  319.                 )
  320.  
  321.         )
  322.  
  323.     [table_charset:protected] => Array
  324.         (
  325.             [wp_posts] => utf8mb4
  326.         )
  327.  
  328.     [check_current_query:protected] => 1
  329.     [checking_collation:wpdb:private] =>
  330.     [col_info:protected] =>
  331.     [queries] =>
  332.     [reconnect_retries:protected] => 5
  333.     [prefix] => wp_
  334.     [base_prefix] => wp_
  335.     [ready] => 1
  336.     [blogid] => 0
  337.     [siteid] => 0
  338.     [tables] => Array
  339.         (
  340.             [0] => posts
  341.             [1] => comments
  342.             [2] => links
  343.             [3] => options
  344.             [4] => postmeta
  345.             [5] => terms
  346.             [6] => term_taxonomy
  347.             [7] => term_relationships
  348.             [8] => termmeta
  349.             [9] => commentmeta
  350.         )
  351.  
  352.     [old_tables] => Array
  353.         (
  354.             [0] => categories
  355.             [1] => post2cat
  356.             [2] => link2cat
  357.         )
  358.  
  359.     [global_tables] => Array
  360.         (
  361.             [0] => users
  362.             [1] => usermeta
  363.         )
  364.  
  365.     [ms_global_tables] => Array
  366.         (
  367.             [0] => blogs
  368.             [1] => blogmeta
  369.             [2] => signups
  370.             [3] => site
  371.             [4] => sitemeta
  372.             [5] => sitecategories
  373.             [6] => registration_log
  374.         )
  375.  
  376.     [comments] => wp_comments
  377.     [commentmeta] => wp_commentmeta
  378.     [links] => wp_links
  379.     [options] => wp_options
  380.     [postmeta] => wp_postmeta
  381.     [posts] => wp_posts
  382.     [terms] => wp_terms
  383.     [term_relationships] => wp_term_relationships
  384.     [term_taxonomy] => wp_term_taxonomy
  385.     [termmeta] => wp_termmeta
  386.     [usermeta] => wp_usermeta
  387.     [users] => wp_users
  388.     [blogs] =>
  389.     [blogmeta] =>
  390.     [registration_log] =>
  391.     [signups] =>
  392.     [site] =>
  393.     [sitecategories] =>
  394.     [sitemeta] =>
  395.     [field_types] => Array
  396.         (
  397.             [post_author] => %d
  398.             [post_parent] => %d
  399.             [menu_order] => %d
  400.             [term_id] => %d
  401.             [term_group] => %d
  402.             [term_taxonomy_id] => %d
  403.             [parent] => %d
  404.             [count] => %d
  405.             [object_id] => %d
  406.             [term_order] => %d
  407.             [ID] => %d
  408.             [comment_ID] => %d
  409.             [comment_post_ID] => %d
  410.             [comment_parent] => %d
  411.             [user_id] => %d
  412.             [link_id] => %d
  413.             [link_owner] => %d
  414.             [link_rating] => %d
  415.             [option_id] => %d
  416.             [blog_id] => %d
  417.             [meta_id] => %d
  418.             [post_id] => %d
  419.             [user_status] => %d
  420.             [umeta_id] => %d
  421.             [comment_karma] => %d
  422.             [comment_count] => %d
  423.             [active] => %d
  424.             [cat_id] => %d
  425.             [deleted] => %d
  426.             [lang_id] => %d
  427.             [mature] => %d
  428.             [public] => %d
  429.             [site_id] => %d
  430.             [spam] => %d
  431.         )
  432.  
  433.     [charset] => utf8mb4
  434.     [collate] => utf8mb4_unicode_ci
  435.     [dbuser:protected] => root
  436.     [dbpassword:protected] =>
  437.     [dbname:protected] => test_site_files
  438.     [dbhost:protected] => 127.0.0.1
  439.     [dbh:protected] => mysqli Object
  440.         (
  441.             [affected_rows] => 1
  442.             [client_info] => mysqlnd 8.0.0
  443.             [client_version] => 80000
  444.             [connect_errno] => 0
  445.             [connect_error] =>
  446.             [errno] => 0
  447.             [error] =>
  448.             [error_list] => Array
  449.                 (
  450.                 )
  451.  
  452.             [field_count] => 0
  453.             [host_info] => 127.0.0.1 via TCP/IP
  454.             [info] =>
  455.             [insert_id] => 13
  456.             [server_info] => 5.5.5-10.5.8-MariaDB
  457.             [server_version] => 100508
  458.             [sqlstate] => 00000
  459.             [protocol_version] => 10
  460.             [thread_id] => 662
  461.             [warning_count] => 0
  462.         )
  463.  
  464.     [func_call] => $db->query("INSERT INTO `wp_posts` (`post_author`, `post_date`, `post_date_gmt`, `post_content`, `post_content_filtered`, `post_title`, `post_excerpt`, `post_status`, `post_type`, `comment_status`, `ping_status`, `post_password`, `post_name`, `to_ping`, `pinged`, `post_modified`, `post_modified_gmt`, `post_parent`, `menu_order`, `post_mime_type`, `guid`) VALUES (1, '2021-09-13 20:34:40', '2021-09-13 20:34:40', '', '', 'test', '', 'publish', 'post', 'open', 'open', '', 'test-6', '', '', '2021-09-13 20:34:40', '2021-09-13 20:34:40', 0, 0, '', '')")
  465.     [is_mysql] => 1
  466.     [incompatible_modes:protected] => Array
  467.         (
  468.             [0] => NO_ZERO_DATE
  469.             [1] => ONLY_FULL_GROUP_BY
  470.             [2] => STRICT_TRANS_TABLES
  471.             [3] => STRICT_ALL_TABLES
  472.             [4] => TRADITIONAL
  473.             [5] => ANSI
  474.         )
  475.  
  476.     [use_mysqli:wpdb:private] => 1
  477.     [has_connected:wpdb:private] => 1
  478.     [categories] => wp_categories
  479.     [post2cat] => wp_post2cat
  480.     [link2cat] => wp_link2cat
  481. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement