{"id":2954,"date":"2021-11-17T23:33:00","date_gmt":"2021-11-17T23:33:00","guid":{"rendered":"https:\/\/tschaki.com\/?p=2954"},"modified":"2021-11-18T00:37:42","modified_gmt":"2021-11-18T00:37:42","slug":"wordpress-database-functions","status":"publish","type":"post","link":"https:\/\/tschaki.com\/en\/wordpress-database-functions\/","title":{"rendered":"WordPress database functions"},"content":{"rendered":"<h2 id=\"h-table-creation-in-wordpress\">Table creation in WordPress<\/h2>\n\n\n\n<p>For plugins or themes often database connections are needed to store settings for APIs or other things. Below you will find the code for creating a new table in the database. We use a plugin for this. The connection is made via <code>$wpdb<\/code> with the WordPress database credentials:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;php&quot;,&quot;mime&quot;:&quot;text\/x-php&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:false,&quot;language&quot;:&quot;PHP&quot;,&quot;modeName&quot;:&quot;php&quot;}\">function create_plugin_database_tables( ) {\n    global $wpdb, $table_prefix;\n    require_once( ABSPATH . '\/wp-admin\/includes\/upgrade.php' );\n    $new_table = $table_prefix . &quot;plugin_table_name&quot;;\n    if( $wpdb-&gt;get_var( &quot;show tables like '$new_table'&quot; ) != $new_table )\n    {\n        $sql = &quot;CREATE TABLE `&quot; . $new_table . &quot;` (\n          `id` int(11) NOT NULL AUTO_INCREMENT,\n          `account_name` varchar(255) NOT NULL,\n          `account_type` int(11) NOT NULL,\n          `transfer_state` varchar(255) DEFAULT NULL,\n          PRIMARY KEY (`id`)\n        ) ENGINE=InnoDB DEFAULT CHARSET=utf8; &quot;;\n        dbDelta($sql);\n    }\n}\nregister_activation_hook( __FILE__, 'create_plugin_database_tables' );<\/pre><\/div>\n\n\n\n<p>The plugin creates a 4 column table when activated. This then looks like this:<\/p>\n\n\n\n<p class=\"console-view\" style=\"display: inline-block;font-family:'Courier New', Arial\"><span class=\"console-spacer\"><\/span><br><span class=\"console-text\"><span style=\"display:inline-block;\">Name `wp_plugin_table_name`<\/span><\/span><br><span class=\"console-spacer\"><\/span><br> <span class=\"console-text\"><span style=\"display:inline-block;\">`id` <i>int(11)<\/i><\/span><\/span><br><span class=\"console-spacer\"><\/span><br> <span class=\"console-text\"><span style=\"display:inline-block;\">`account_name` <i>varchar(255)<\/i><\/span><\/span><br><span class=\"console-spacer\"><\/span><br> <span class=\"console-text\"><span style=\"display:inline-block;\">`account_type` <i>int(11)<\/i><\/span><\/span><br><span class=\"console-spacer\"><\/span><br> <span class=\"console-text\"><span style=\"display:inline-block;\">`transfer_state` <i>varchar(255)<\/i><\/span><\/span><br><span class=\"console-spacer\"><\/span><\/p>\n\n\n\n<p>In the following examples, this table is used as a starting point.<\/p>\n\n\n\n<h2 id=\"h-options-with-wordpress-db\">Options with WordPress DB<\/h2>\n\n\n\n<p>WordPress DB (short <code>$wpdb<\/code>) offers the same structure as normal MySQL Script. These are also used via <code>$wpdb<\/code> in the same complexity. Standard functions like <code>SELECT<\/code>, <code>INSERT<\/code>, <code>UPDATE <\/code>and <code>DELETE<\/code> are covered here in more detail.<\/p>\n\n\n\n<h3 id=\"h-wordpress-database-select\">WordPress database: SELECT<\/h3>\n\n\n\n<p>The output shows all account names which have the fictitious <code>account_name<\/code> = 123aaa and <code>account_type<\/code> = 1.<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;php&quot;,&quot;mime&quot;:&quot;text\/x-php&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;PHP&quot;,&quot;modeName&quot;:&quot;php&quot;}\">global $wpdb;\n$session_id = &quot;123aaa&quot;;\n$dbquery = $wpdb-&gt;prepare( &quot;SELECT * FROM &quot;.$wpdb-&gt;prefix.&quot;plugin_table_name WHERE account_name = %s AND account_type = %d&quot;, $session_id, 1 );\n$db_entries = $wpdb-&gt;get_results( $dbquery );\nif(count( $db_entries ) != 0 ) {\n\tforeach( $db_entries as $src_entry ) {\n    \t$account_name = $src_entry-&gt;account_name;\n      \treturn $account_name;\n    }\n}<\/pre><\/div>\n\n\n\n<p>Strictly speaking, all the magic happens on line 3.<\/p>\n\n\n\n<p>In this query, <code>%<\/code> variables are used. <code>%s<\/code> stands for string, a type assignment as a placeholder. <code>%d<\/code> stands for decimal number, also a placeholder. The values for the query are appended as parameters at the end of the prepare function.<\/p>\n\n\n\n<h3 id=\"h-wordpress-database-insert\">WordPress database: INSERT<\/h3>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;php&quot;,&quot;mime&quot;:&quot;text\/x-php&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;PHP&quot;,&quot;modeName&quot;:&quot;php&quot;}\">global $wpdb;\n$wpdb-&gt;insert( $wpdb-&gt;prefix . &quot;plugin_table_name&quot;, \n    array(\n\t\t&quot;account_name&quot; =&gt; &quot;123aaa&quot;,\n\t\t&quot;account_type&quot; =&gt; 1,\n\t\t&quot;transfer_state&quot; =&gt; &quot;transfered&quot;\n\t)\n);<\/pre><\/div>\n\n\n\n<p>The first column <code>id<\/code> in our table example has a <code>PRIMARY<\/code> key and the option <code>auto_increment<\/code>. This ensures that the number of records is incremented automatically.<\/p>\n\n\n\n<h3 id=\"h-wordpress-database-update\">WordPress database: UPDATE<\/h3>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;php&quot;,&quot;mime&quot;:&quot;text\/x-php&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;PHP&quot;,&quot;modeName&quot;:&quot;php&quot;}\">$wpdb-&gt;update( $wpdb-&gt;prefix . 'plugin_table_name',\n\tarray(\n\t\t'account_name' =&gt; &quot;124abb&quot;,\n\t\t'account_type' =&gt; 2,\n\t\t'transfer_state' =&gt; &quot;finished&quot;,\n\t),\n\tarray('account_type' =&gt; 1, 'transfer_state' =&gt; &quot;tranfered&quot;),\n\tarray('%s', '%d', '%s'),\n\tarray('%d', '%s')\n);<\/pre><\/div>\n\n\n\n<p>The last two arrays contain type definitions. First of the last two with three elements specifies which data in the table is updated, in this example <code>%s -> string<\/code>, <code>%d -> decimal number<\/code>, <code>%s -> string<\/code>. The last one checks the search data (usually <code>WHERE<\/code>) for type of <code>account_type<\/code> and <code>transfer_state<\/code>.<\/p>\n\n\n\n<h3 id=\"h-wordpress-database-delete\">WordPress database: DELETE<\/h3>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre class=\"CodeMirror\" data-setting=\"{&quot;mode&quot;:&quot;php&quot;,&quot;mime&quot;:&quot;text\/x-php&quot;,&quot;theme&quot;:&quot;material&quot;,&quot;lineNumbers&quot;:false,&quot;styleActiveLine&quot;:false,&quot;lineWrapping&quot;:false,&quot;readOnly&quot;:true,&quot;language&quot;:&quot;PHP&quot;,&quot;modeName&quot;:&quot;php&quot;}\">global $wpdb;\n$wpdb-&gt;delete($wpdb-&gt;prefix . 'plugin_table_name', array('account_typ' =&gt; 2));<\/pre><\/div>\n\n\n\n<p>All records which have <code>account_type<\/code> = 2 will be deleted irrevocably.<\/p>\n\n\n\n<p>Source: <a href=\"https:\/\/codex.wordpress.org\/Database_Description\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/codex.wordpress.org\/Database_Description<\/a><\/p>","protected":false},"excerpt":{"rendered":"<p>Create, select, insert, update and delete functions to apply in wordpress plugins or themes. <\/p>","protected":false},"author":1,"featured_media":2398,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[124,125],"tags":[130,131],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v16.6 (Yoast SEO v17.9) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Wordpress database functions &bull; tschaki<\/title>\n<meta name=\"description\" content=\"WordPress provides in-house functions for database. Learn tables creation, select, insert, update and delete in plugins or themes.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/tschaki.com\/en\/wordpress-database-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Wordpress database functions\" \/>\n<meta property=\"og:description\" content=\"WordPress provides in-house functions for database. Learn tables creation, select, insert, update and delete in plugins or themes.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/tschaki.com\/en\/wordpress-database-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"tschaki\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-17T23:33:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-18T00:37:42+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/tschaki.com\/wp-content\/uploads\/2020\/11\/WP-WooCommerce.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1580\" \/>\n\t<meta property=\"og:image:height\" content=\"500\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Trent Bojett\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/tschaki.com\/#organization\",\"name\":\"Tschaki.com\",\"url\":\"https:\/\/tschaki.com\/\",\"sameAs\":[],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/tschaki.com\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/tschaki.com\/wp-content\/uploads\/2020\/12\/tschaki-logo-1.png\",\"contentUrl\":\"https:\/\/tschaki.com\/wp-content\/uploads\/2020\/12\/tschaki-logo-1.png\",\"width\":1022,\"height\":273,\"caption\":\"Tschaki.com\"},\"image\":{\"@id\":\"https:\/\/tschaki.com\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/tschaki.com\/#website\",\"url\":\"https:\/\/tschaki.com\/\",\"name\":\"tschaki\",\"description\":\"Codesupport and alternatives\",\"publisher\":{\"@id\":\"https:\/\/tschaki.com\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/tschaki.com\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/tschaki.com\/wp-content\/uploads\/2020\/11\/WP-WooCommerce.jpg\",\"contentUrl\":\"https:\/\/tschaki.com\/wp-content\/uploads\/2020\/11\/WP-WooCommerce.jpg\",\"width\":1580,\"height\":500,\"caption\":\"create wordpress plugin\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#webpage\",\"url\":\"https:\/\/tschaki.com\/en\/wordpress-database-functions\/\",\"name\":\"Wordpress database functions &bull; tschaki\",\"isPartOf\":{\"@id\":\"https:\/\/tschaki.com\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#primaryimage\"},\"datePublished\":\"2021-11-17T23:33:00+00:00\",\"dateModified\":\"2021-11-18T00:37:42+00:00\",\"description\":\"WordPress provides in-house functions for database. Learn tables creation, select, insert, update and delete in plugins or themes.\",\"breadcrumb\":{\"@id\":\"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/tschaki.com\/en\/wordpress-database-functions\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/tschaki.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WordPress database functions\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#webpage\"},\"author\":{\"@id\":\"https:\/\/tschaki.com\/#\/schema\/person\/b4bf4286ba196fcd756146568acb3219\"},\"headline\":\"WordPress database functions\",\"datePublished\":\"2021-11-17T23:33:00+00:00\",\"dateModified\":\"2021-11-18T00:37:42+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#webpage\"},\"wordCount\":275,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/tschaki.com\/#organization\"},\"image\":{\"@id\":\"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/tschaki.com\/wp-content\/uploads\/2020\/11\/WP-WooCommerce.jpg\",\"keywords\":[\"php\",\"wordpress\"],\"articleSection\":[\"Technology\",\"Wordpress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/tschaki.com\/#\/schema\/person\/b4bf4286ba196fcd756146568acb3219\",\"name\":\"Trent Bojett\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/tschaki.com\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/7344f00aff4a7391a8f499ff58fc7275?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/7344f00aff4a7391a8f499ff58fc7275?s=96&d=mm&r=g\",\"caption\":\"Trent Bojett\"},\"description\":\"My name is Trent Bojett, I am 28 years old and I live in Switzerland. Because of my enthusiasm for writing and the logical world (= software development) I started this blog in early 2020.\",\"sameAs\":[\"https:\/\/tschaki.com\"]}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Wordpress database functions &bull; tschaki","description":"WordPress provides in-house functions for database. Learn tables creation, select, insert, update and delete in plugins or themes.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/tschaki.com\/en\/wordpress-database-functions\/","og_locale":"en_US","og_type":"article","og_title":"Wordpress database functions","og_description":"WordPress provides in-house functions for database. Learn tables creation, select, insert, update and delete in plugins or themes.","og_url":"https:\/\/tschaki.com\/en\/wordpress-database-functions\/","og_site_name":"tschaki","article_published_time":"2021-11-17T23:33:00+00:00","article_modified_time":"2021-11-18T00:37:42+00:00","og_image":[{"width":1580,"height":500,"url":"https:\/\/tschaki.com\/wp-content\/uploads\/2020\/11\/WP-WooCommerce.jpg","type":"image\/jpeg"}],"twitter_card":"summary_large_image","twitter_misc":{"Written by":"Trent Bojett","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/tschaki.com\/#organization","name":"Tschaki.com","url":"https:\/\/tschaki.com\/","sameAs":[],"logo":{"@type":"ImageObject","@id":"https:\/\/tschaki.com\/#logo","inLanguage":"en-US","url":"https:\/\/tschaki.com\/wp-content\/uploads\/2020\/12\/tschaki-logo-1.png","contentUrl":"https:\/\/tschaki.com\/wp-content\/uploads\/2020\/12\/tschaki-logo-1.png","width":1022,"height":273,"caption":"Tschaki.com"},"image":{"@id":"https:\/\/tschaki.com\/#logo"}},{"@type":"WebSite","@id":"https:\/\/tschaki.com\/#website","url":"https:\/\/tschaki.com\/","name":"tschaki","description":"Codesupport and alternatives","publisher":{"@id":"https:\/\/tschaki.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/tschaki.com\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"ImageObject","@id":"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#primaryimage","inLanguage":"en-US","url":"https:\/\/tschaki.com\/wp-content\/uploads\/2020\/11\/WP-WooCommerce.jpg","contentUrl":"https:\/\/tschaki.com\/wp-content\/uploads\/2020\/11\/WP-WooCommerce.jpg","width":1580,"height":500,"caption":"create wordpress plugin"},{"@type":"WebPage","@id":"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#webpage","url":"https:\/\/tschaki.com\/en\/wordpress-database-functions\/","name":"Wordpress database functions &bull; tschaki","isPartOf":{"@id":"https:\/\/tschaki.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#primaryimage"},"datePublished":"2021-11-17T23:33:00+00:00","dateModified":"2021-11-18T00:37:42+00:00","description":"WordPress provides in-house functions for database. Learn tables creation, select, insert, update and delete in plugins or themes.","breadcrumb":{"@id":"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/tschaki.com\/en\/wordpress-database-functions\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/tschaki.com\/en\/"},{"@type":"ListItem","position":2,"name":"WordPress database functions"}]},{"@type":"Article","@id":"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#article","isPartOf":{"@id":"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#webpage"},"author":{"@id":"https:\/\/tschaki.com\/#\/schema\/person\/b4bf4286ba196fcd756146568acb3219"},"headline":"WordPress database functions","datePublished":"2021-11-17T23:33:00+00:00","dateModified":"2021-11-18T00:37:42+00:00","mainEntityOfPage":{"@id":"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#webpage"},"wordCount":275,"commentCount":0,"publisher":{"@id":"https:\/\/tschaki.com\/#organization"},"image":{"@id":"https:\/\/tschaki.com\/en\/wordpress-database-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/tschaki.com\/wp-content\/uploads\/2020\/11\/WP-WooCommerce.jpg","keywords":["php","wordpress"],"articleSection":["Technology","Wordpress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/tschaki.com\/en\/wordpress-database-functions\/#respond"]}]},{"@type":"Person","@id":"https:\/\/tschaki.com\/#\/schema\/person\/b4bf4286ba196fcd756146568acb3219","name":"Trent Bojett","image":{"@type":"ImageObject","@id":"https:\/\/tschaki.com\/#personlogo","inLanguage":"en-US","url":"https:\/\/secure.gravatar.com\/avatar\/7344f00aff4a7391a8f499ff58fc7275?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/7344f00aff4a7391a8f499ff58fc7275?s=96&d=mm&r=g","caption":"Trent Bojett"},"description":"My name is Trent Bojett, I am 28 years old and I live in Switzerland. Because of my enthusiasm for writing and the logical world (= software development) I started this blog in early 2020.","sameAs":["https:\/\/tschaki.com"]}]}},"_links":{"self":[{"href":"https:\/\/tschaki.com\/en\/wp-json\/wp\/v2\/posts\/2954"}],"collection":[{"href":"https:\/\/tschaki.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tschaki.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tschaki.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tschaki.com\/en\/wp-json\/wp\/v2\/comments?post=2954"}],"version-history":[{"count":3,"href":"https:\/\/tschaki.com\/en\/wp-json\/wp\/v2\/posts\/2954\/revisions"}],"predecessor-version":[{"id":2962,"href":"https:\/\/tschaki.com\/en\/wp-json\/wp\/v2\/posts\/2954\/revisions\/2962"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tschaki.com\/en\/wp-json\/wp\/v2\/media\/2398"}],"wp:attachment":[{"href":"https:\/\/tschaki.com\/en\/wp-json\/wp\/v2\/media?parent=2954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tschaki.com\/en\/wp-json\/wp\/v2\/categories?post=2954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tschaki.com\/en\/wp-json\/wp\/v2\/tags?post=2954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}