Answers for "Var_dump Php for attachment data"

PHP
0

Var_dump Php for attachment data

array(4) {
  [0]=>
  object(WP_Post)#405 (24) {
    ["ID"]=>
    int(1982)
    ["post_author"]=>
    string(1) "1"
    ["post_date"]=>
    string(19) "2021-09-07 10:43:52"
    ["post_date_gmt"]=>
    string(19) "2021-09-07 10:43:52"
    ["post_content"]=>
    string(0) ""
    ["post_title"]=>
    string(35) "patrick-hendry-ZmIGHiaopTw-unsplash"
    ["post_excerpt"]=>
    string(0) ""
    ["post_status"]=>
    string(7) "inherit"
    ["comment_status"]=>
    string(4) "open"
    ["ping_status"]=>
    string(6) "closed"
    ["post_password"]=>
    string(0) ""
    ["post_name"]=>
    string(35) "patrick-hendry-zmighiaoptw-unsplash"
    ["to_ping"]=>
    string(0) ""
    ["pinged"]=>
    string(0) ""
    ["post_modified"]=>
    string(19) "2021-09-07 10:43:52"
    ["post_modified_gmt"]=>
    string(19) "2021-09-07 10:43:52"
    ["post_content_filtered"]=>
    string(0) ""
    ["post_parent"]=>
    int(1971)
    ["guid"]=>
    string(98) "http://localhost/testing_plugin/wp-content/uploads/2021/09/patrick-hendry-ZmIGHiaopTw-unsplash.jpg"
    ["menu_order"]=>
    int(0)
    ["post_type"]=>
    string(10) "attachment"
    ["post_mime_type"]=>
    string(10) "image/jpeg"
    ["comment_count"]=>
    string(1) "0"
    ["filter"]=>
    string(3) "raw"
  }
  [1]=>
  object(WP_Post)#404 (24) {
    ["ID"]=>
    int(1978)
    ["post_author"]=>
    string(1) "1"
    ["post_date"]=>
    string(19) "2021-09-07 10:35:04"
    ["post_date_gmt"]=>
    string(19) "2021-09-07 10:35:04"
    ["post_content"]=>
    string(0) ""
    ["post_title"]=>
    string(8) "linkedin"
    ["post_excerpt"]=>
    string(0) ""
    ["post_status"]=>
    string(7) "inherit"
    ["comment_status"]=>
    string(4) "open"
    ["ping_status"]=>
    string(6) "closed"
    ["post_password"]=>
    string(0) ""
    ["post_name"]=>
    string(8) "linkedin"
    ["to_ping"]=>
    string(0) ""
    ["pinged"]=>
    string(0) ""
    ["post_modified"]=>
    string(19) "2021-09-07 10:35:04"
    ["post_modified_gmt"]=>
    string(19) "2021-09-07 10:35:04"
    ["post_content_filtered"]=>
    string(0) ""
    ["post_parent"]=>
    int(1971)
    ["guid"]=>
    string(71) "http://localhost/testing_plugin/wp-content/uploads/2021/09/linkedin.png"
    ["menu_order"]=>
    int(0)
    ["post_type"]=>
    string(10) "attachment"
    ["post_mime_type"]=>
    string(9) "image/png"
    ["comment_count"]=>
    string(1) "0"
    ["filter"]=>
    string(3) "raw"
  }
  [2]=>
  object(WP_Post)#403 (24) {
    ["ID"]=>
    int(1975)
    ["post_author"]=>
    string(1) "1"
    ["post_date"]=>
    string(19) "2021-09-07 10:32:42"
    ["post_date_gmt"]=>
    string(19) "2021-09-07 10:32:42"
    ["post_content"]=>
    string(0) ""
    ["post_title"]=>
    string(19) "main-banner.dd2060a"
    ["post_excerpt"]=>
    string(0) ""
    ["post_status"]=>
    string(7) "inherit"
    ["comment_status"]=>
    string(4) "open"
    ["ping_status"]=>
    string(6) "closed"
    ["post_password"]=>
    string(0) ""
    ["post_name"]=>
    string(21) "main-banner-dd2060a-2"
    ["to_ping"]=>
    string(0) ""
    ["pinged"]=>
    string(0) ""
    ["post_modified"]=>
    string(19) "2021-09-07 10:32:42"
    ["post_modified_gmt"]=>
    string(19) "2021-09-07 10:32:42"
    ["post_content_filtered"]=>
    string(0) ""
    ["post_parent"]=>
    int(1971)
    ["guid"]=>
    string(84) "http://localhost/testing_plugin/wp-content/uploads/2021/09/main-banner.dd2060a-1.jpg"
    ["menu_order"]=>
    int(0)
    ["post_type"]=>
    string(10) "attachment"
    ["post_mime_type"]=>
    string(10) "image/jpeg"
    ["comment_count"]=>
    string(1) "0"
    ["filter"]=>
    string(3) "raw"
  }
  [3]=>
  object(WP_Post)#402 (24) {
    ["ID"]=>
    int(1973)
    ["post_author"]=>
    string(1) "1"
    ["post_date"]=>
    string(19) "2021-09-07 10:28:06"
    ["post_date_gmt"]=>
    string(19) "2021-09-07 10:28:06"
    ["post_content"]=>
    string(0) ""
    ["post_title"]=>
    string(32) "cropped-TheVitaminsPlus-scaled-1"
    ["post_excerpt"]=>
    string(0) ""
    ["post_status"]=>
    string(7) "inherit"
    ["comment_status"]=>
    string(4) "open"
    ["ping_status"]=>
    string(6) "closed"
    ["post_password"]=>
    string(0) ""
    ["post_name"]=>
    string(32) "cropped-thevitaminsplus-scaled-1"
    ["to_ping"]=>
    string(0) ""
    ["pinged"]=>
    string(0) ""
    ["post_modified"]=>
    string(19) "2021-09-07 10:28:06"
    ["post_modified_gmt"]=>
    string(19) "2021-09-07 10:28:06"
    ["post_content_filtered"]=>
    string(0) ""
    ["post_parent"]=>
    int(1971)
    ["guid"]=>
    string(95) "http://localhost/testing_plugin/wp-content/uploads/2021/09/cropped-TheVitaminsPlus-scaled-1.jpg"
    ["menu_order"]=>
    int(0)
    ["post_type"]=>
    string(10) "attachment"
    ["post_mime_type"]=>
    string(10) "image/jpeg"
    ["comment_count"]=>
    string(1) "0"
    ["filter"]=>
    string(3) "raw"
  }
}
Posted by: Guest on September-07-2021

Browse Popular Code Answers by Language