
{"id":5168,"date":"2016-04-01T08:13:30","date_gmt":"2016-04-01T08:13:30","guid":{"rendered":"http:\/\/tapchicntt.com\/?p=5168"},"modified":"2025-04-15T13:56:48","modified_gmt":"2025-04-15T06:56:48","slug":"wordpress-them-duong-dan-tuy-chon-len-thanh-cong-cu-wordpress","status":"publish","type":"post","link":"https:\/\/tapchicntt.com\/wordpress-them-duong-dan-tuy-chon-len-thanh-cong-cu-wordpress\/","title":{"rendered":"[WordPress] Th\u00eam \u0111\u01b0\u1eddng d\u1eabn t\u00f9y ch\u1ecdn l\u00ean thanh c\u00f4ng c\u1ee5 wordpress"},"content":{"rendered":"\n<p>Theo m\u1eb7c \u0111\u1ecbnh WordPress s\u1ebd hi\u1ec3n th\u1ecb thanh c\u00f4ng c\u1ee5 tr\u00ean \u0111\u1ea7u trang khi ng\u01b0\u1eddi d\u00f9ng \u0111\u0103ng nh\u1eadp. B\u1ea1n c\u00f3 th\u1ec3 \u0111i\u1ec1u ch\u1ec9nh, t\u1eaft n\u00f3 \u0111i, th\u1eadm ch\u00ed v\u00f4 hi\u1ec7u h\u00f3a n\u00f3. Trong b\u00e0i vi\u1ebft n\u00e0y, ch\u00fang t\u00f4i s\u1ebd h\u01b0\u1edbng d\u1eabn cho b\u1ea1n c\u00e1ch th\u00eam li\u00ean k\u1ebft c\u1ee7a b\u1ea1n tr\u00ean thanh c\u00f4ng c\u1ee5.<\/p>\n\n\n\n<p>Theo m\u1eb7c \u0111\u1ecbnh, thanh c\u00f4ng c\u1ee5 hi\u1ec7n th\u1ecb c\u00e1c li\u00ean k\u1ebft h\u1eefu \u00edch cho ng\u01b0\u1eddi Qu\u1ea3n tr\u1ecb, cho ph\u00e9p ng\u01b0\u1eddi d\u00f9ng nhanh ch\u00f3ng.<\/p>\n\n\n\n<p>Tuy nhi\u00ean, b\u1ea1n c\u00f3 th\u1ec3 th\u00eam nh\u1eefng li\u00ean k\u1ebft c\u1ee7 ri\u00eang b\u1ea1n, m\u00e0 b\u1ea1n th\u1ea5y n\u00f3 c\u1ea7n thi\u1ebft cho c\u00f4ng vi\u1ec7c qu\u1ea3n l\u00fd website c\u1ee7a b\u1ea1n.<\/p>\n\n\n\n<p><strong>Th\u00eam li\u00ean k\u1ebft t\u00f9y ch\u1ec9nh<\/strong><\/p>\n\n\n\n<p>\u0110\u1ec3 th\u00eam m\u1ed9t li\u00ean k\u1ebft t\u00f9y ch\u1ec9nh l\u00ean thanh c\u00f4ng c\u1ee5, b\u1ea1n c\u1ea7n ch\u1ec9 c\u1ea7n sao ch\u00e9p v\u00e0 d\u00e1n \u0111o\u1ea1n m\u00e3 sau v\u00e0o file functions.php trong theme c\u1ee7a b\u1ea1n ho\u1eb7c trong m\u1ed9t plugin ri\u00eang c\u1ee7a b\u1ea1n:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/\/ add a link to the WP Toolbar\nfunction custom_toolbar_link($wp_admin_bar) {\n    $args = array(\n        &#039;id&#039; =&gt; &#039;leachpost_lmh&#039;,\n        &#039;title&#039; =&gt; &#039;Leach Post&#039;, \n        &#039;href&#039; =&gt; get_bloginfo(&#039;url&#039;).&#039;\/wp-admin\/admin.php?page=dashboard&#039;, \n        &#039;meta&#039; =&gt; array(\n            &#039;class&#039; =&gt; &#039;leachpost_lmh&#039;, \n            &#039;title&#039; =&gt; &#039;Leach Post of LMH&#039;\n            )\n    );\n    $wp_admin_bar-&gt;add_node($args);\n}\nadd_action(&#039;admin_bar_menu&#039;, &#039;custom_toolbar_link&#039;, 999);\n<\/pre><\/div>\n\n\n<p><strong>\u0110i\u1ec1u ch\u1ec9nh<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>title<\/code>: Ti\u00eau \u0111\u1ec1.<\/li>\n\n\n\n<li><code>href<\/code>: \u0111\u01b0\u1eddng d\u1eabn.<\/li>\n<\/ul>\n\n\n\n<p>N\u1ebfu b\u1ea1n mu\u1ed1n c\u00f3 link k\u1ebft con th\u00ec s\u1eed d\u1ee5ng \u0111o\u1ea1n code sau:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: php; title: ; notranslate\" title=\"\">\n\/\/ add a link to the WP Toolbar\nfunction custom_toolbar_link($wp_admin_bar) {\n    $args = array(\n        &#039;id&#039; =&gt; &#039;leachpost_lmh&#039;,\n        &#039;title&#039; =&gt; &#039;Leach Post&#039;, \n        &#039;href&#039; =&gt; get_bloginfo(&#039;url&#039;).&#039;\/wp-admin\/admin.php?page=dashboard&#039;, \n        &#039;meta&#039; =&gt; array(\n            &#039;class&#039; =&gt; &#039;leachpost_lmh&#039;, \n            &#039;title&#039; =&gt; &#039;Leach Post of LMH&#039;\n            )\n    );\n     \n    $wp_admin_bar-&gt;add_node($args);\n     \n    \/\/ Add the first child link \n    $args = array(\n        &#039;id&#039; =&gt; &#039;techz_lmh&#039;,\n        &#039;title&#039; =&gt; &#039;Techz&#039;, \n        &#039;href&#039; =&gt; get_bloginfo(&#039;url&#039;).&#039;\/wp-admin\/admin.php?page=techz&#039;,\n        &#039;parent&#039; =&gt; &#039;leachpost_lmh&#039;, \n        &#039;meta&#039; =&gt; array(\n            &#039;class&#039; =&gt; &#039;techz_lmh&#039;, \n            &#039;title&#039; =&gt; &#039;Leach Post Techz&#039;\n            )\n    );\n    $wp_admin_bar-&gt;add_node($args);\n    $args = array(\n        &#039;id&#039; =&gt; &#039;gamek_lmh&#039;,\n        &#039;title&#039; =&gt; &#039;GameK&#039;, \n        &#039;href&#039; =&gt; get_bloginfo(&#039;url&#039;).&#039;\/wp-admin\/admin.php?page=gamek&#039;,\n        &#039;parent&#039; =&gt; &#039;leachpost_lmh&#039;, \n        &#039;meta&#039; =&gt; array(\n            &#039;class&#039; =&gt; &#039;gamek_lmh&#039;, \n            &#039;title&#039; =&gt; &#039;Leach Post Gamek&#039;\n            )\n    );\n    $wp_admin_bar-&gt;add_node($args);\n}\nadd_action(&#039;admin_bar_menu&#039;, &#039;custom_toolbar_link&#039;, 999);\n<\/pre><\/div>\n\n\n<p>B\u1ea1n thay \u0111\u1ed5i <strong>parent<\/strong> = <strong>id<\/strong> \u0111\u1ec3 ch\u1ecdn menu cha.<\/p>\n\n\n\n<p>Ch\u00fac c\u00e1c b\u1ea1n th\u00e0nh c\u00f4ng!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Theo m\u1eb7c \u0111\u1ecbnh WordPress s\u1ebd hi\u1ec3n th\u1ecb thanh c\u00f4ng c\u1ee5 tr\u00ean \u0111\u1ea7u trang khi ng\u01b0\u1eddi d\u00f9ng \u0111\u0103ng nh\u1eadp. B\u1ea1n c\u00f3 [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":6979,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[241,143],"tags":[],"class_list":["post-5168","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hooks","category-thu-thuat-wordpress"],"views":503,"_links":{"self":[{"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/posts\/5168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/comments?post=5168"}],"version-history":[{"count":1,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/posts\/5168\/revisions"}],"predecessor-version":[{"id":9731,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/posts\/5168\/revisions\/9731"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/media\/6979"}],"wp:attachment":[{"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/media?parent=5168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/categories?post=5168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tapchicntt.com\/rest-api\/wp\/v2\/tags?post=5168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}