{"id":1134,"date":"2013-09-20T05:47:56","date_gmt":"2013-09-20T05:47:56","guid":{"rendered":"http:\/\/musilda.cz\/?p=1134"},"modified":"2013-09-20T05:47:56","modified_gmt":"2013-09-20T05:47:56","slug":"funkce-wp_enqueue_script","status":"publish","type":"post","link":"https:\/\/affinite.io\/cs\/funkce-wp_enqueue_script\/","title":{"rendered":"Funkce wp_enqueue_script"},"content":{"rendered":"<p>Funkce wp_enqueue_script vytv\u00e1\u0159\u00ed odkaz na script, kter\u00fd jste ji\u017e d\u0159\u00edve zaregistrovali pomoc\u00ed wp_register_script. Jedn\u00e1 se o jedin\u00fd spr\u00e1vn\u00fd zp\u016fsob, jak vkl\u00e1dat do \u0161ablony nap\u0159\u00edklad jQuery, proto\u017ee WordPress kontroluje zaregistrovan\u00e9 scripty a nedoch\u00e1z\u00ed tak k opakovan\u00e9mu na\u010dten\u00ed stejn\u00e9ho scriptu.<!--more--><\/p>\n<pre lang=\"php\">\nwp_enqueue_script( $handle, $src, $deps, $ver, $in_footer );\n<\/pre>\n<h2>Parametry:<\/h2>\n<p>$handle &#8211; vy\u017eadov\u00e1no, obsahuje jm\u00e9no scriptu, pod kter\u00fdm je zaregistrov\u00e1n. Pokud jste tedy zaregistrovali script pod jm\u00e9nem &#8222;slider&#8220;, pod stejn\u00fdm jm\u00e9nem ho budete volat v t\u00e9to funkci.<\/p>\n<p>$src &#8211; cesta ke scriptu. Povinn\u00e1 je pouze v tom p\u0159\u00edpad\u011b, \u017ee jste ji ji\u017e nedefinovali v wp_register_script. V \u017e\u00e1dn\u00e9m p\u0159\u00edpad\u011b v cest\u011b nepou\u017e\u00edvejte pevn\u00e9 pojmenov\u00e1n\u00ed url, ale v p\u0159\u00edpad\u011b pluginu funkci plugins_url a v \u0161ablon\u011b get_template_directory_uri.<\/p>\n<p>$deps &#8211; pomoc\u00ed tohoto parametru m\u016f\u017eete ovlivnit \u0159azen\u00ed vkl\u00e1dan\u00fdch script\u016f a ur\u010dit, kter\u00fd soubor se vkl\u00e1d\u00e1 d\u0159\u00edve. Pou\u017eijte pouze, pokud jste jej nedefinovali v wp_register_sript.<\/p>\n<p>$ver &#8211; zde m\u016f\u017eete definovat verzi scriptu a defaultn\u011b je nastavena na false. V tom p\u0159\u00edpad\u011b WordPress automaticky p\u0159id\u00e1v\u00e1 do url verzi instalace WordPressu. Pokud chcete link bez uveden\u00ed verze, nastavte na null.<\/p>\n<p>$in_footer &#8211; ur\u010duje, zda se bude script na\u010d\u00edtat v head, nebo footer. Pokud je true, na\u010dte se v pati\u010dce. Defaultn\u011b je false.<\/p>\n<h2>N\u011bkolik p\u0159\u00edklad\u016f z WordPress.org<\/h2>\n<p>Proto\u017ee jsem na toto t\u00e9ma ji\u017e \u010dl\u00e1nek napsal &#8211; <a href=\"http:\/\/musilda.cz\/pridani-javascriptu-a-externiho-stylu-do-sablony-spravny-zpusob\/\" target=\"_blank\" rel=\"noopener\">Jak vlo\u017eit javascript do \u0161ablony<\/a>, uvedu jen p\u0159\u00edklady, kter\u00e9 \u010dl\u00e1nek roz\u0161i\u0159uj\u00ed.<\/p>\n<p><strong>Vlo\u017een\u00ed js souboru, kter\u00fd je ji\u017e ve WordPressu vlo\u017een a zaregistrov\u00e1n:<\/strong><\/p>\n<pre lang=\"php\">\nfunction my_scripts_method() {\n    wp_enqueue_script( 'scriptaculous' );\n}\n\nadd_action( 'wp_enqueue_scripts', 'my_scripts_method' );\n<\/pre>\n<p>Akce wp_enqueue, kterou zde vol\u00e1me, se vztahuje jen k frontendu. Pokud pot\u0159ebujeme soubory vlo\u017eit do administrace, mus\u00edme pou\u017e\u00edt hook admin_enqueue_scripts.<\/p>\n<p><strong>Vlo\u017een\u00ed scriptu v z\u00e1vislosti na jQuery<\/strong><\/p>\n<p>\u0158ada vkl\u00e1dan\u00fdch script\u016f je z\u00e1visl\u00e1 na n\u011bkter\u00e9 z knihoven, jako je jQuery. Pokud pou\u017eijeme parametr $deps, vlo\u017e\u00ed se script pouze, pokud ji\u017e bylo vlo\u017eeno jQuery.<\/p>\n<pre lang=\"php\">\nfunction my_scripts_method() {\n\twp_enqueue_script(\n\t\t'custom-script',\n\t\tget_stylesheet_directory_uri() . '\/js\/custom_script.js',\n\t\tarray( 'jquery' )\n\t);\n}\n\nadd_action( 'wp_enqueue_scripts', 'my_scripts_method' );\n<\/pre>\n<p><strong>Vlo\u017een\u00ed scriptu do pati\u010dky bez z\u00e1vislosti na jin\u00e9m souboru<\/strong><\/p>\n<pre lang=\"php\">\nadd_action( 'wp_enqueue_scripts', 'child_add_scripts' );\n\nfunction child_add_scripts() {\n    wp_register_script(\n        'google-analytics',\n        get_stylesheet_directory_uri() . '\/google_analytics_object.js',\n        false,\n        '1.0',\n        true\n    );\n\n    wp_enqueue_script( 'google-analytics' );\n}\n<\/pre>\n<h2>Scripty, kter\u00e9 WordPress ji\u017e obsahuje a vkl\u00e1d\u00e1:<\/h2>\n<p>P\u0159i instalaci ji\u017e WordPress obsahuje \u0159adu script\u016f, kter\u00e9 vyu\u017e\u00edv\u00e1 v administraci a pro funkce webu. Zde je seznam v\u0161ech script\u016f, kter\u00e9 tak m\u016f\u017eete pou\u017e\u00edt ve sv\u00fdch \u0161ablon\u00e1ch a pluginech:<\/p>\n<table>\n<tr>\n<td>Jm\u00e9no<\/td>\n<td>Handle<\/td>\n<td>Z\u00e1vislost<\/td>\n<\/tr>\n<tr>\n<td>Image Cropper<\/td>\n<td>Image cropper<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Jcrop<\/td>\n<td>jcrop<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>SWFObject<\/td>\n<td>swfobject<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>SWFUpload<\/td>\n<td>swfupload<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>SWFUpload Degrade<\/td>\n<td>swfupload-degrade<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>SWFUpload Queue<\/td>\n<td>swfupload-queue<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>SWFUploadHandlers<\/td>\n<td>swfupload-handlers<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>jQuery<\/td>\n<td>jquery<\/td>\n<td>json2 (for AJAX calls)<\/td>\n<\/tr>\n<tr>\n<td>jQuery Form<\/td>\n<td>jquery-form<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery Color<\/td>\n<td>jquery-color<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery Masonry<\/td>\n<td>jquery-masonry<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Core<\/td>\n<td>jquery-ui-core<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Widget<\/td>\n<td>jquery-ui-widget<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Mouse<\/td>\n<td>jquery-ui-mouse<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Accordion<\/td>\n<td>jquery-ui-accordion<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Autocomplete<\/td>\n<td>jquery-ui-autocomplete<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Slider<\/td>\n<td>jquery-ui-slider<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Tabs<\/td>\n<td>jquery-ui-tabs<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Sortable<\/td>\n<td>jquery-ui-sortable<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Draggable<\/td>\n<td>jquery-ui-draggable<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Droppable<\/td>\n<td>jquery-ui-droppable<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Selectable<\/td>\n<td>jquery-ui-selectable<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Position<\/td>\n<td>jquery-ui-position<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Datepicker<\/td>\n<td>jquery-ui-datepicker<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Resizable<\/td>\n<td>jquery-ui-resizable<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Dialog<\/td>\n<td>jquery-ui-dialog<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Button<\/td>\n<td>jquery-ui-button<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Effects<\/td>\n<td>jquery-effects-core<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Effects &#8211; Blind<\/td>\n<td>jquery-effects-blind<\/td>\n<td>jquery-effects-core<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Effects &#8211; Bounce<\/td>\n<td>jquery-effects-bounce<\/td>\n<td>jquery-effects-core<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Effects &#8211; Clip<\/td>\n<td>jquery-effects-clip<\/td>\n<td>jquery-effects-core<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Effects &#8211; Drop<\/td>\n<td>jquery-effects-drop<\/td>\n<td>jquery-effects-core<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Effects &#8211; Explode<\/td>\n<td>jquery-effects-explode<\/td>\n<td>jquery-effects-core<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Effects &#8211; Fade<\/td>\n<td>jquery-effects-fade<\/td>\n<td>jquery-effects-core<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Effects &#8211; Fold<\/td>\n<td>jquery-effects-fold<\/td>\n<td>jquery-effects-core<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Effects &#8211; Highlight<\/td>\n<td>jquery-effects-highlight<\/td>\n<td>jquery-effects-core<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Effects &#8211; Pulsate<\/td>\n<td>jquery-effects-pulsate<\/td>\n<td>jquery-effects-core<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Effects &#8211; Scale<\/td>\n<td>jquery-effects-scale<\/td>\n<td>jquery-effects-core<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Effects &#8211; Shake<\/td>\n<td>jquery-effects-shake<\/td>\n<td>jquery-effects-core<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Effects &#8211; Slide<\/td>\n<td>jquery-effects-slide<\/td>\n<td>jquery-effects-core<\/td>\n<\/tr>\n<tr>\n<td>jQuery UI Effects &#8211; Transfer<\/td>\n<td>jquery-effects-transfer<\/td>\n<td>jquery-effects-core<\/td>\n<\/tr>\n<tr>\n<td>MediaElement.js (WP 3.6+)<\/td>\n<td>wp-mediaelement<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery Schedule<\/td>\n<td>schedule<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery Suggest<\/td>\n<td>suggest<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>ThickBox (modified)<\/td>\n<td>thickbox<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>jQuery HoverIntent<\/td>\n<td>hoverIntent<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>jQuery Hotkeys<\/td>\n<td>jquery-hotkeys<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>Simple AJAX Code-Kit<\/td>\n<td>sack<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>QuickTags<\/td>\n<td>quicktags<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Iris (Colour picker)<\/td>\n<td>iris<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>Farbtastic (deprecated)<\/td>\n<td>farbtastic<\/td>\n<td>jquery<\/p>\n<tr>\n<td>ColorPicker (deprecated)<\/td>\n<td>colorpicker<\/td>\n<td>jquery<\/td>\n<\/tr>\n<tr>\n<td>Tiny MCE<\/td>\n<td>tiny_mce<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Autosave<\/td>\n<td>autosave<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>WordPress AJAX Response<\/td>\n<td>wp-ajax-response<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>List Manipulation<\/td>\n<td>wp-lists<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>WP Common<\/td>\n<td>common<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>WP Editor<\/td>\n<td>editorremov<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>WP Editor Functions<\/td>\n<td>editor-functions<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>AJAX Cat<\/td>\n<td>ajaxcat<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Admin Categories<\/td>\n<td>admin-categories<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Admin Tags<\/td>\n<td>admin-tags<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Admin custom fields<\/td>\n<td>admin-custom-fields<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Password Strength Meter<\/td>\n<td>password-strength-meter<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Admin Comments<\/td>\n<td>admin-comments<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Admin Users<\/td>\n<td>admin-users<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Admin Forms<\/td>\n<td>admin-forms<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>XFN<\/td>\n<td>xfn<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Upload<\/td>\n<td>upload<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>PostBox<\/td>\n<td>postbox<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Slug<\/td>\n<td>slug<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Post<\/td>\n<td>post<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Page<\/td>\n<td>page<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Link<\/td>\n<td>link<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Comment<\/td>\n<td>comment<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Threaded Comments<\/td>\n<td>comment-reply<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Admin Gallery<\/td>\n<td>admin-gallery<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Media Upload<\/td>\n<td>media-upload<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Admin widgets<\/td>\n<td>admin-widgets<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Word Count<\/td>\n<td>word-count<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Theme Preview<\/td>\n<td>theme-preview<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>JSON for JS<\/td>\n<td>json2<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Plupload Core<\/td>\n<td>plupload<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Plupload All Runtimes<\/td>\n<td>plupload-all<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Plupload HTML4<\/td>\n<td>plupload-html4<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Plupload HTML5<\/td>\n<td>plupload-html5<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Plupload Flash<\/td>\n<td>plupload-flash<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Plupload Silverlight<\/td>\n<td>plupload-silverlight<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Underscore js<\/td>\n<td>underscore<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>Backbone js<\/td>\n<td>backbone<\/td>\n<td><\/td>\n<\/tr>\n<\/table>\n<p>Vyu\u017eit\u00ed takov\u00fdch script\u016f v\u00e1m ur\u010dit\u011b usnadn\u00ed pr\u00e1ci na \u0161ablon\u00e1ch a m\u016f\u017eete vyu\u017e\u00edvat \u0159adu funkc\u00ed, kter\u00e9 ji\u017e WordPress v z\u00e1kladu m\u00e1.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Funkce wp_enqueue_script vytv\u00e1\u0159\u00ed odkaz na script, kter\u00fd jste ji\u017e d\u0159\u00edve zaregistrovali pomoc\u00ed wp_register_script. Jedn\u00e1 se o jedin\u00fd spr\u00e1vn\u00fd zp\u016fsob, jak vkl\u00e1dat do \u0161ablony nap\u0159\u00edklad jQuery, proto\u017ee WordPress kontroluje zaregistrovan\u00e9 scripty a nedoch\u00e1z\u00ed tak k opakovan\u00e9mu na\u010dten\u00ed stejn\u00e9ho scriptu.<\/p>\n","protected":false},"author":1,"featured_media":8523,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_uag_custom_page_level_css":"","footnotes":""},"categories":[7,22],"tags":[161],"class_list":["post-1134","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-codex","category-template-tags","tag-funkce-wp_enqueue_script"],"acf":[],"uagb_featured_image_src":{"full":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/12\/funkce-ve-wordpressu.png",1200,800,false],"thumbnail":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/12\/funkce-ve-wordpressu-150x150.png",150,150,true],"medium":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/12\/funkce-ve-wordpressu-300x200.png",300,200,true],"medium_large":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/12\/funkce-ve-wordpressu-768x512.png",640,427,true],"large":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/12\/funkce-ve-wordpressu-1024x683.png",640,427,true],"1536x1536":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/12\/funkce-ve-wordpressu.png",1200,800,false],"2048x2048":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/12\/funkce-ve-wordpressu.png",1200,800,false],"archive-list":["https:\/\/affinite.io\/cs\/wp-content\/uploads\/sites\/2\/2014\/12\/funkce-ve-wordpressu-400x265.png",400,265,true]},"uagb_author_info":{"display_name":"Affinite","author_link":"https:\/\/affinite.io\/cs\/author\/affinite\/"},"uagb_comment_info":3,"uagb_excerpt":"Funkce wp_enqueue_script vytv\u00e1\u0159\u00ed odkaz na script, kter\u00fd jste ji\u017e d\u0159\u00edve zaregistrovali pomoc\u00ed wp_register_script. Jedn\u00e1 se o jedin\u00fd spr\u00e1vn\u00fd zp\u016fsob, jak vkl\u00e1dat do \u0161ablony nap\u0159\u00edklad jQuery, proto\u017ee WordPress kontroluje zaregistrovan\u00e9 scripty a nedoch\u00e1z\u00ed tak k opakovan\u00e9mu na\u010dten\u00ed stejn\u00e9ho scriptu.","_links":{"self":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/comments?post=1134"}],"version-history":[{"count":0,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/posts\/1134\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media\/8523"}],"wp:attachment":[{"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/media?parent=1134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/categories?post=1134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/affinite.io\/cs\/wp-json\/wp\/v2\/tags?post=1134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}