{"id":4789,"date":"2023-01-05T16:55:11","date_gmt":"2023-01-05T09:55:11","guid":{"rendered":"https:\/\/danielepais.com\/journal\/?p=4789"},"modified":"2023-01-13T23:14:46","modified_gmt":"2023-01-13T16:14:46","slug":"quick-and-easy-make-a-wordpress-plugin-level-2","status":"publish","type":"post","link":"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/","title":{"rendered":"Quick and easy make a WordPress Plugin &#8211; level 2"},"content":{"rendered":"<p>Make a <a href=\"https:\/\/danielepais.com\/journal\/building-custom-themes-for-wordpress\/\">WordPress<\/a> <a href=\"https:\/\/danielepais.com\/journal\/wordpress-backup-and-restore-fundamentals\/\">plugin<\/a>: In today&#8217;s tutorial we are going to make a WordPress that adds a ribbon (label) with a link on the left corner of the page.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/ywAAAAAAQABAAACAUwAOw==\" fifu-lazy=\"1\" fifu-data-sizes=\"auto\" fifu-data-srcset=\"https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1lYXN5LW1ha2UtYS1Xb3JkUHJlc3MtUGx1Z2luLeKAky1sZXZlbC0yLmpwZw\/6eb8b7d29fc6\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=75&h=0&c=0 75w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1lYXN5LW1ha2UtYS1Xb3JkUHJlc3MtUGx1Z2luLeKAky1sZXZlbC0yLmpwZw\/2d276cdaea71\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=100&h=0&c=0 100w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1lYXN5LW1ha2UtYS1Xb3JkUHJlc3MtUGx1Z2luLeKAky1sZXZlbC0yLmpwZw\/6dab93f9e365\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=150&h=0&c=0 150w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1lYXN5LW1ha2UtYS1Xb3JkUHJlc3MtUGx1Z2luLeKAky1sZXZlbC0yLmpwZw\/234cb5ecb3ff\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=240&h=0&c=0 240w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1lYXN5LW1ha2UtYS1Xb3JkUHJlc3MtUGx1Z2luLeKAky1sZXZlbC0yLmpwZw\/487d4ede06c0\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=320&h=0&c=0 320w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1lYXN5LW1ha2UtYS1Xb3JkUHJlc3MtUGx1Z2luLeKAky1sZXZlbC0yLmpwZw\/cd0933965ba3\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=500&h=0&c=0 500w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1lYXN5LW1ha2UtYS1Xb3JkUHJlc3MtUGx1Z2luLeKAky1sZXZlbC0yLmpwZw\/4db35ee905d3\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=640&h=0&c=0 640w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1lYXN5LW1ha2UtYS1Xb3JkUHJlc3MtUGx1Z2luLeKAky1sZXZlbC0yLmpwZw\/a2495275f336\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=800&h=0&c=0 800w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1lYXN5LW1ha2UtYS1Xb3JkUHJlc3MtUGx1Z2luLeKAky1sZXZlbC0yLmpwZw\/70bbbe2cdc5b\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=1024&h=0&c=0 1024w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1lYXN5LW1ha2UtYS1Xb3JkUHJlc3MtUGx1Z2luLeKAky1sZXZlbC0yLmpwZw\/3d242c57db55\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=1280&h=0&c=0 1280w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1lYXN5LW1ha2UtYS1Xb3JkUHJlc3MtUGx1Z2luLeKAky1sZXZlbC0yLmpwZw\/1d3ae945d6a4\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=1600&h=0&c=0 1600w\" class=\"alignnone wp-image-4812 size-full\" title=\"Quick easy make a WordPress Plugin \u2013 level 2\" fifu-data-src=\"https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1lYXN5LW1ha2UtYS1Xb3JkUHJlc3MtUGx1Z2luLeKAky1sZXZlbC0yLmpwZw\/9685021e222a\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789\" alt=\"Quick easy make a WordPress Plugin \u2013 level 2\" width=\"800\" height=\"450\" \/><\/p>\n<p><span style=\"font-size: 16px;\">This is the second article of this mini series, if you haven&#8217;t read the first one you can do so at this link <a href=\"https:\/\/danielepais.com\/journal\/quick-easy-make-a-wordpress-plugin-level-1\" target=\"_blank\" rel=\"noopener\">here<\/a>.\u00a0 As this is a level 2 plugin we have added a little more complications compared to last week&#8217;s level 1 plugin development tutorial. In this plugin instead of writing inline<\/span><strong style=\"font-size: 16px;\"> css<\/strong><span style=\"font-size: 16px;\"> on the main <\/span><strong style=\"font-size: 16px;\">php<\/strong><span style=\"font-size: 16px;\"> file we are going to have a dedicate <\/span><strong style=\"font-size: 16px;\">stylesheet<\/strong><span style=\"font-size: 16px;\"> and we are going to\u00a0 show you how to enqueue it in your plugin. Right, without further ado, let&#8217;s begin!\u00a0<\/span><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6ac806f4eb28e\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #18bc9c;color:#18bc9c\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #18bc9c;color:#18bc9c\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6ac806f4eb28e\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#Create_a_WordPress_plugin_level_2\" >Create a WordPress plugin level 2<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#Step_1\" >Step 1<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#Step_2\" >Step 2<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#Step_3\" >Step 3<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#Step_4\" >Step 4<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#Step_5\" >Step 5<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#Step_6\" >Step 6<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#Styling_and_customization\" >Styling and customization<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#Add_text_to_the_ribbon\" >Add text to the ribbon<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#Add_a_link_to_the_ribbon\" >Add a link to the ribbon<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#Open_the_link_on_a_new_tab\" >Open the link on a new tab<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#Force_the_color_of_the_link_to_be_white\" >Force the color of the link to be white<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#The_final_output\" >The final output<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#You_main_php_file_ribbon-pluginphp\" >You main php file (ribbon-plugin.php)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-15\" href=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#You_main_css_file_ribbon-stylecss\" >You main css file (ribbon-style.css)<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-16\" href=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#Final_step\" >Final step<\/a><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"Create_a_WordPress_plugin_level_2\"><\/span>Create a WordPress plugin level 2<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>To create a WordPress plugin that adds a ribbon on the left corner of the page, you can follow these steps:<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_1\"><\/span><strong>Step 1<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Create a new folder in the <strong>wp-content\/plugins<\/strong> directory and give it a unique name, such as &#8220;<strong>ribbon-plugin<\/strong>&#8220;.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_2\"><\/span><strong>Step 2<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Inside the folder, create a new file called &#8220;<strong>ribbon-plugin.php<\/strong>&#8220;. This will be the main plugin file.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Step_3\"><\/span><strong>Step 3<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>In the plugin file, add the plugin header at the top. This will include the plugin name, description, and other information. The plugin header should look something like this:<\/p>\n<pre id=\"code-snippet-source-8\" class=\"code-snippet-source linkable-line-numbers\"><code class=\"language-php line-numbers\">&lt;?php\n\n\/*\r\n* Plugin Name: Ribbon Plugin\r\n* Plugin URI: https:\/\/www.example.com\/ribbon-plugin\r\n* Description: This plugin adds a ribbon on the left corner of the page.\r\n* Version: 1.0\r\n* Author: Your Name\r\n* Author URI: https:\/\/www.example.com\r\n* License: GPL2\r\n*\/<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Step_4\"><\/span><strong>Step 4<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Next, you will need to add the code to display the ribbon on the left corner of the page. You can do this by adding an action hook that will insert the ribbon <strong><a href=\"https:\/\/danielepais.com\/journal\/a-custom-html-css-link-box\/\">HTML<\/a><\/strong> into the page. To do this, you can use the <strong>wp_footer<\/strong> action hook, which is called in the footer of every page.<\/p>\n<p>Add the following code to your plugin file to add the action hook:<\/p>\n<pre id=\"code-snippet-source-9\" class=\"code-snippet-source linkable-line-numbers\"><code class=\"language-php line-numbers\">&lt;?php\n\nfunction ribbon_display() {\r\necho &#039;&lt;div class=&quot;ribbon&quot;&gt;Ribbon&lt;\/div&gt;&#039;;\r\n}\r\nadd_action( &#039;wp_footer&#039;, &#039;ribbon_display&#039; );<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Step_5\"><\/span><strong>Step 5<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To style the ribbon, you will need to add some <strong>CSS<\/strong>. You can do this by <a href=\"https:\/\/developer.wordpress.org\/reference\/functions\/wp_enqueue_style\/\" target=\"_blank\" rel=\"noopener\">enqueuing a <strong>stylesheet<\/strong> in your plugin<\/a>. Add the following code to your plugin file to enqueue the stylesheet:<\/p>\n<pre id=\"code-snippet-source-10\" class=\"code-snippet-source linkable-line-numbers\"><code class=\"language-php line-numbers\">&lt;?php\n\nfunction ribbon_styles() {\r\nwp_enqueue_style( &#039;ribbon-style&#039;, plugin_dir_url( __FILE__ ) . &#039;ribbon-style.css&#039; );\r\n}\r\nadd_action( &#039;wp_enqueue_scripts&#039;, &#039;ribbon_styles&#039; );<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Step_6\"><\/span><strong>Step 6<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Create a new file in the plugin folder called &#8220;<strong>ribbon-style.css<\/strong>&#8221; and add the <strong>CSS<\/strong> styles for the ribbon. For example:<\/p>\n<pre id=\"code-snippet-source-11\" class=\"code-snippet-source linkable-line-numbers\"><code class=\"language-php line-numbers\">.ribbon {\r\nposition: fixed;\r\nleft: 0;\r\ntop: 0;\r\nbackground-color: red;\r\ncolor: white;\r\npadding: 10px;\r\n}<\/code><\/pre>\n<p><a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.danielepais.dpiptv\" target=\"_blank\" rel=\"noopener\"><img loading=\"lazy\" decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/ywAAAAAAQABAAACAUwAOw==\" fifu-lazy=\"1\" fifu-data-sizes=\"auto\" fifu-data-srcset=\"https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMy8wMS9sZWFkZXJib2FkLTEzMDEyMDIzLTcyOHg5MC0xLmpwZw\/bcad1f835d30\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=75&h=0&c=0 75w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMy8wMS9sZWFkZXJib2FkLTEzMDEyMDIzLTcyOHg5MC0xLmpwZw\/50d5cb6e709f\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=100&h=0&c=0 100w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMy8wMS9sZWFkZXJib2FkLTEzMDEyMDIzLTcyOHg5MC0xLmpwZw\/c127a5cf16fb\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=150&h=0&c=0 150w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMy8wMS9sZWFkZXJib2FkLTEzMDEyMDIzLTcyOHg5MC0xLmpwZw\/776c684f4e77\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=240&h=0&c=0 240w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMy8wMS9sZWFkZXJib2FkLTEzMDEyMDIzLTcyOHg5MC0xLmpwZw\/092ca6433a3e\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=320&h=0&c=0 320w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMy8wMS9sZWFkZXJib2FkLTEzMDEyMDIzLTcyOHg5MC0xLmpwZw\/6f6e50f578be\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=500&h=0&c=0 500w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMy8wMS9sZWFkZXJib2FkLTEzMDEyMDIzLTcyOHg5MC0xLmpwZw\/e80562a6cb4f\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=640&h=0&c=0 640w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMy8wMS9sZWFkZXJib2FkLTEzMDEyMDIzLTcyOHg5MC0xLmpwZw\/0595e1d8acb8\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=800&h=0&c=0 800w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMy8wMS9sZWFkZXJib2FkLTEzMDEyMDIzLTcyOHg5MC0xLmpwZw\/e6e6d2964cfa\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=1024&h=0&c=0 1024w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMy8wMS9sZWFkZXJib2FkLTEzMDEyMDIzLTcyOHg5MC0xLmpwZw\/9279b0aaa3ef\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=1280&h=0&c=0 1280w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMy8wMS9sZWFkZXJib2FkLTEzMDEyMDIzLTcyOHg5MC0xLmpwZw\/1522979beefa\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=1600&h=0&c=0 1600w\" class=\"aligncenter wp-image-4844 size-full\" title=\"Watch FREE Internet TV and Listen FREE Internet Radio with dp - IPTV and Radio\" fifu-data-src=\"https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMy8wMS9sZWFkZXJib2FkLTEzMDEyMDIzLTcyOHg5MC0xLmpwZw\/cc3ee4256206\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789\" alt=\"Watch FREE Internet TV and Listen FREE Internet Radio with dp - IPTV and Radio\" width=\"728\" height=\"90\" \/><\/a><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Styling_and_customization\"><\/span>Styling and customization<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"Add_text_to_the_ribbon\"><\/span><strong>Add text to the ribbon<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To add text to the ribbon, you can modify the <strong>HTML<\/strong> code that is displayed by the plugin.<\/p>\n<p>For example, you can modify the <strong>ribbon_display<\/strong> function in your plugin to include the text that you want to display in the ribbon:<\/p>\n<pre id=\"code-snippet-source-12\" class=\"code-snippet-source linkable-line-numbers\"><code class=\"language-php line-numbers\">&lt;?php\n\nfunction ribbon_display() {\r\necho &#039;&lt;div class=&quot;ribbon&quot;&gt;Your text here&lt;\/div&gt;&#039;;\r\n}<\/code><\/pre>\n<p>Alternatively, you can also use a <strong>shortcode<\/strong> to display the text in the ribbon. To do this, you can modify the ribbon_display function to include a <strong>shortcode<\/strong> and then use the <strong>shortcode<\/strong> in the ribbon <strong>HTML<\/strong>:<\/p>\n<pre id=\"code-snippet-source-13\" class=\"code-snippet-source linkable-line-numbers\"><code class=\"language-php line-numbers\">&lt;?php\n\nfunction ribbon_display() {\r\necho &#039;&lt;div class=&quot;ribbon&quot;&gt;&#039; . do_shortcode(&#039;[ribbon_text]&#039;) . &#039;&lt;\/div&gt;&#039;;\r\n}\r\n\r\nfunction ribbon_shortcode( $atts ) {\r\nreturn &#039;Your text here&#039;;\r\n}\r\nadd_shortcode( &#039;ribbon_text&#039;, &#039;ribbon_shortcode&#039; );<\/code><\/pre>\n<p>Then, you can use the shortcode [ribbon_text] in the content of any post or page to display the text in the ribbon.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Add_a_link_to_the_ribbon\"><\/span><strong>Add a link to the ribbon<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To add a link to the ribbon, you can modify the <strong>HTML<\/strong> code that is displayed by the plugin.<\/p>\n<p>For example, you can modify the <strong>ribbon_display<\/strong> function in your plugin to include an anchor tag with the desired link:<\/p>\n<pre id=\"code-snippet-source-14\" class=\"code-snippet-source linkable-line-numbers\"><code class=\"language-php line-numbers\">&lt;?php\n\nfunction ribbon_display() {\r\necho &#039;&lt;div class=&quot;ribbon&quot;&gt;&lt;a href=&quot;https:\/\/www.example.com&quot;&gt;Link&lt;\/a&gt;&lt;\/div&gt;&#039;;\r\n}<\/code><\/pre>\n<p>This will add a link to the ribbon. You can also customize the link text by modifying the anchor tag content.<\/p>\n<p>Alternatively, you can also use a <strong>shortcode<\/strong> to display the link in the ribbon. To do this, you can modify the <strong>ribbon_display<\/strong> function to include a <strong>shortcode<\/strong> and then use the <strong>shortcode<\/strong> in the ribbon <strong>HTML<\/strong>:<\/p>\n<pre id=\"code-snippet-source-15\" class=\"code-snippet-source linkable-line-numbers\"><code class=\"language-php line-numbers\">&lt;?php\n\nfunction ribbon_display() {\r\necho &#039;&lt;div class=&quot;ribbon&quot;&gt;&#039; . do_shortcode(&#039;[ribbon_link]&#039;) . &#039;&lt;\/div&gt;&#039;;\r\n}\r\n\r\nfunction ribbon_shortcode( $atts ) {\r\nreturn &#039;&lt;a href=&quot;https:\/\/www.example.com&quot;&gt;Link&lt;\/a&gt;&#039;;\r\n}\r\nadd_shortcode( &#039;ribbon_link&#039;, &#039;ribbon_shortcode&#039; );<\/code><\/pre>\n<p>Then, you can use the <strong>shortcode<\/strong> [ribbon_link] in the content of any post or page to display the link in the ribbon.<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Open_the_link_on_a_new_tab\"><\/span><strong>Open the link on a new tab<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To open the link in a new tab, you can add the target attribute to the anchor tag with the value <strong>_blank<\/strong>.<\/p>\n<p>For example, you can modify the <strong>ribbon_display<\/strong> function in your plugin to include the target attribute:<\/p>\n<pre id=\"code-snippet-source-16\" class=\"code-snippet-source linkable-line-numbers\"><code class=\"language-php line-numbers\">&lt;?php\n\nfunction ribbon_display() {\r\necho &#039;&lt;div class=&quot;ribbon&quot;&gt;&lt;a href=&quot;https:\/\/www.example.com&quot; target=&quot;_blank&quot;&gt;Link&lt;\/a&gt;&lt;\/div&gt;&#039;;\r\n}<\/code><\/pre>\n<p>Alternatively, you can also use a <strong>shortcode<\/strong> to display the link in the ribbon. To do this, you can modify the <strong>ribbon_shortcode<\/strong> function to include the target attribute:<\/p>\n<pre id=\"code-snippet-source-17\" class=\"code-snippet-source linkable-line-numbers\"><code class=\"language-php line-numbers\">&lt;?php\n\nfunction ribbon_shortcode( $atts ) {\r\nreturn &#039;&lt;a href=&quot;https:\/\/www.example.com&quot; target=&quot;_blank&quot;&gt;Link&lt;\/a&gt;&#039;;\r\n}<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"Force_the_color_of_the_link_to_be_white\"><\/span><strong>Force the color of the link to be white<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To force the color of the link to be white, you can use the color property in your<strong> CSS<\/strong> styles.<\/p>\n<p>For example, you can modify the ribbon class in your &#8220;<strong>ribbon-style.css<\/strong>&#8221; file to include the color property:<\/p>\n<pre id=\"code-snippet-source-18\" class=\"code-snippet-source linkable-line-numbers\"><code class=\"language-php line-numbers\">.ribbon a {\r\ncolor: white;\r\n}<\/code><\/pre>\n<p>This will set the color of the link to white.<\/p>\n<p>Alternatively, you can also use the <strong>!important<\/strong> keyword to make sure that the color property takes precedence over any other styles that may be applied to the link. For example:<\/p>\n<pre id=\"code-snippet-source-19\" class=\"code-snippet-source linkable-line-numbers\"><code class=\"language-php line-numbers\">.ribbon a {\r\ncolor: white !important;\r\n}<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"The_final_output\"><\/span>The final output<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>your final output for a left corner ribbon with a white text line and a link that opens in a new tab will as follow:<\/p>\n<h3><span class=\"ez-toc-section\" id=\"You_main_php_file_ribbon-pluginphp\"><\/span><strong>You main php file (ribbon-plugin.php)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre id=\"code-snippet-source-20\" class=\"code-snippet-source linkable-line-numbers\"><code class=\"language-php line-numbers\">&lt;?php\r\n\/*\r\n* Plugin Name: Ribbon Plugin\r\n* Plugin URI: https:\/\/danielepais.com\/journal\r\n* Description: This plugin adds a ribbon on the left corner of the page.\r\n* Version: 1.0\r\n* Author: Daniele Pais\r\n* Author URI: https:\/\/danielepais.com\r\n* License: GPL2\r\n*\/\r\n\r\nfunction ribbon_display() {\r\necho &#039;&lt;div class=&quot;ribbon&quot;&gt;&#039; . do_shortcode(&#039;[ribbon_link]&#039;) . &#039;&lt;\/div&gt;&#039;;\r\n}\r\n\r\nadd_action( &#039;wp_footer&#039;, &#039;ribbon_display&#039; );\r\n\r\n\r\nfunction ribbon_styles() {\r\nwp_enqueue_style( &#039;ribbon-style&#039;, plugin_dir_url( __FILE__ ) . &#039;ribbon-style.css&#039; );\r\n}\r\nadd_action( &#039;wp_enqueue_scripts&#039;, &#039;ribbon_styles&#039; );\r\n\r\n\r\nfunction ribbon_shortcode( $atts ) {\r\nreturn &#039;&lt;a href=&quot;https:\/\/www.example.com&quot; target=&quot;_blank&quot;&gt;Link&lt;\/a&gt;&#039;;\r\n}\r\nadd_shortcode( &#039;ribbon_link&#039;, &#039;ribbon_shortcode&#039; );<\/code><\/pre>\n<h3><span class=\"ez-toc-section\" id=\"You_main_css_file_ribbon-stylecss\"><\/span><strong>You main css file (ribbon-style.css)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<pre id=\"code-snippet-source-21\" class=\"code-snippet-source linkable-line-numbers\"><code class=\"language-php line-numbers\">.ribbon {\r\nposition: fixed;\r\nleft: 0;\r\ntop: 0;\r\nbackground-color: red;\r\ncolor: white;\r\npadding: 10px;\r\ntransform: rotate(90deg);\r\n}\r\n\r\n.ribbon a {\r\ncolor: white !important;\r\n}<\/code><\/pre>\n<h2><span class=\"ez-toc-section\" id=\"Final_step\"><\/span>Final step<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Save all your <a href=\"https:\/\/danielepais.com\/journal\/encrypt-files-on-linux-using-veracrypt\/\">files<\/a> and activate the plugin in the WordPress admin dashboard.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/ywAAAAAAQABAAACAUwAOw==\" fifu-lazy=\"1\" fifu-data-sizes=\"auto\" fifu-data-srcset=\"https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9Zb3VyLWxldmVsLTItd29yZHByZXNzLXBsdWdpbi1pbi1ub3ctYWN0aXZhdGVkLWluLXRoZS1iYWNrZW5kLWFuZC1mdWxseS1vcGVyYXRpb25hbC5qcGc\/e68723b4befb\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=75&h=0&c=0 75w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9Zb3VyLWxldmVsLTItd29yZHByZXNzLXBsdWdpbi1pbi1ub3ctYWN0aXZhdGVkLWluLXRoZS1iYWNrZW5kLWFuZC1mdWxseS1vcGVyYXRpb25hbC5qcGc\/bab1baadce98\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=100&h=0&c=0 100w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9Zb3VyLWxldmVsLTItd29yZHByZXNzLXBsdWdpbi1pbi1ub3ctYWN0aXZhdGVkLWluLXRoZS1iYWNrZW5kLWFuZC1mdWxseS1vcGVyYXRpb25hbC5qcGc\/166ef4507f5a\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=150&h=0&c=0 150w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9Zb3VyLWxldmVsLTItd29yZHByZXNzLXBsdWdpbi1pbi1ub3ctYWN0aXZhdGVkLWluLXRoZS1iYWNrZW5kLWFuZC1mdWxseS1vcGVyYXRpb25hbC5qcGc\/73b89dc4f23d\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=240&h=0&c=0 240w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9Zb3VyLWxldmVsLTItd29yZHByZXNzLXBsdWdpbi1pbi1ub3ctYWN0aXZhdGVkLWluLXRoZS1iYWNrZW5kLWFuZC1mdWxseS1vcGVyYXRpb25hbC5qcGc\/230842223b19\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=320&h=0&c=0 320w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9Zb3VyLWxldmVsLTItd29yZHByZXNzLXBsdWdpbi1pbi1ub3ctYWN0aXZhdGVkLWluLXRoZS1iYWNrZW5kLWFuZC1mdWxseS1vcGVyYXRpb25hbC5qcGc\/aa7034136ac4\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=500&h=0&c=0 500w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9Zb3VyLWxldmVsLTItd29yZHByZXNzLXBsdWdpbi1pbi1ub3ctYWN0aXZhdGVkLWluLXRoZS1iYWNrZW5kLWFuZC1mdWxseS1vcGVyYXRpb25hbC5qcGc\/421ad6672a01\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=640&h=0&c=0 640w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9Zb3VyLWxldmVsLTItd29yZHByZXNzLXBsdWdpbi1pbi1ub3ctYWN0aXZhdGVkLWluLXRoZS1iYWNrZW5kLWFuZC1mdWxseS1vcGVyYXRpb25hbC5qcGc\/f61024752306\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=800&h=0&c=0 800w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9Zb3VyLWxldmVsLTItd29yZHByZXNzLXBsdWdpbi1pbi1ub3ctYWN0aXZhdGVkLWluLXRoZS1iYWNrZW5kLWFuZC1mdWxseS1vcGVyYXRpb25hbC5qcGc\/05ae517d7427\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=1024&h=0&c=0 1024w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9Zb3VyLWxldmVsLTItd29yZHByZXNzLXBsdWdpbi1pbi1ub3ctYWN0aXZhdGVkLWluLXRoZS1iYWNrZW5kLWFuZC1mdWxseS1vcGVyYXRpb25hbC5qcGc\/4ec3d57a2d7b\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=1280&h=0&c=0 1280w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9Zb3VyLWxldmVsLTItd29yZHByZXNzLXBsdWdpbi1pbi1ub3ctYWN0aXZhdGVkLWluLXRoZS1iYWNrZW5kLWFuZC1mdWxseS1vcGVyYXRpb25hbC5qcGc\/a1c63d5e4756\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=1600&h=0&c=0 1600w\" class=\"alignnone wp-image-4813 size-full\" title=\"Your level 2 wordpress plugin in now activated in the backend and fully operational\" fifu-data-src=\"https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9Zb3VyLWxldmVsLTItd29yZHByZXNzLXBsdWdpbi1pbi1ub3ctYWN0aXZhdGVkLWluLXRoZS1iYWNrZW5kLWFuZC1mdWxseS1vcGVyYXRpb25hbC5qcGc\/a74f1a88c81e\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789\" alt=\"Your level 2 wordpress plugin in now activated in the backend and fully operational\" width=\"800\" height=\"163\" \/><\/p>\n<p>The ribbon should now be displayed on the left corner of the page and display a white link that opens on a new tab.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"data:image\/gif;base64,R0lGODlhAQABAIAAAAAAAP\/\/\/ywAAAAAAQABAAACAUwAOw==\" fifu-lazy=\"1\" fifu-data-sizes=\"auto\" fifu-data-srcset=\"https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1hbmQtZWFzeS1tYWtlLWEtV29yZFByZXNzLVBsdWdpbi1sZXZlbC0yLmpwZw\/2b18b119d58c\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=75&h=0&c=0 75w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1hbmQtZWFzeS1tYWtlLWEtV29yZFByZXNzLVBsdWdpbi1sZXZlbC0yLmpwZw\/e6d7d446df82\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=100&h=0&c=0 100w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1hbmQtZWFzeS1tYWtlLWEtV29yZFByZXNzLVBsdWdpbi1sZXZlbC0yLmpwZw\/7e85b23ddedf\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=150&h=0&c=0 150w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1hbmQtZWFzeS1tYWtlLWEtV29yZFByZXNzLVBsdWdpbi1sZXZlbC0yLmpwZw\/e06d0d265f37\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=240&h=0&c=0 240w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1hbmQtZWFzeS1tYWtlLWEtV29yZFByZXNzLVBsdWdpbi1sZXZlbC0yLmpwZw\/c87f4318cf7a\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=320&h=0&c=0 320w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1hbmQtZWFzeS1tYWtlLWEtV29yZFByZXNzLVBsdWdpbi1sZXZlbC0yLmpwZw\/98fe25ecc4de\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=500&h=0&c=0 500w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1hbmQtZWFzeS1tYWtlLWEtV29yZFByZXNzLVBsdWdpbi1sZXZlbC0yLmpwZw\/bf04e794f104\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=640&h=0&c=0 640w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1hbmQtZWFzeS1tYWtlLWEtV29yZFByZXNzLVBsdWdpbi1sZXZlbC0yLmpwZw\/38f705435dee\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=800&h=0&c=0 800w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1hbmQtZWFzeS1tYWtlLWEtV29yZFByZXNzLVBsdWdpbi1sZXZlbC0yLmpwZw\/c324dda750bc\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=1024&h=0&c=0 1024w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1hbmQtZWFzeS1tYWtlLWEtV29yZFByZXNzLVBsdWdpbi1sZXZlbC0yLmpwZw\/d8139f947d75\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=1280&h=0&c=0 1280w, https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1hbmQtZWFzeS1tYWtlLWEtV29yZFByZXNzLVBsdWdpbi1sZXZlbC0yLmpwZw\/1a69799f5e77\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789&w=1600&h=0&c=0 1600w\" class=\"alignnone wp-image-4801 size-full\" title=\"Quick and easy make a WordPress Plugin level 2\" fifu-data-src=\"https:\/\/wp.fifu.app\/danielepais.com\/aHR0cHM6Ly9kYW5pZWxlcGFpcy5jb20vam91cm5hbC93cC1jb250ZW50L3VwbG9hZHMvMjAyMi8xMi9RdWljay1hbmQtZWFzeS1tYWtlLWEtV29yZFByZXNzLVBsdWdpbi1sZXZlbC0yLmpwZw\/9d16add55894\/quick-easy-make-a-wordpress-plugin-level-2.webp?p=4789\" alt=\"Quick and easy make a WordPress Plugin level 2\" width=\"1080\" height=\"537\" \/><\/p>\n<p>This post is part of a series and according to what the readers approach to it will be I might extend it to an additional level 3. Have fun with your make a WordPress Plugin!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Make a WordPress plugin: In today&#8217;s tutorial we are going to make a WordPress that adds a ribbon (label) with a link on the left corner of the page.<\/p>\n","protected":false},"author":1,"featured_media":4812,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[561,233],"tags":[1156,1155],"acf":[],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Make a WordPress plugin: In today&#039;s tutorial we are going to make a WordPress that adds a ribbon (label) with a link on the left corner of the page.\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Daniele Pais\"\/>\n\t<meta name=\"google-site-verification\" content=\"googleb91c9505ed997b99\" \/>\n\t<meta name=\"msvalidate.01\" content=\"AD1C96C338E051848BE08C67378B20CA\" \/>\n\t<meta name=\"keywords\" content=\"make a plugin,plugin development,web development,wordpress\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Daniele Pais Blog\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Quick and easy make a WordPress Plugin \u2013 level 2 | dp\" \/>\n\t\t<meta property=\"og:description\" content=\"Make a WordPress plugin: In today&#039;s tutorial we are going to make a WordPress that adds a ribbon (label) with a link on the left corner of the page.\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2022\/12\/Quick-easy-make-a-WordPress-Plugin-\u2013-level-2.jpg\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2022\/12\/Quick-easy-make-a-WordPress-Plugin-\u2013-level-2.jpg\" \/>\n\t\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t\t<meta property=\"og:image:height\" content=\"450\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2023-01-05T09:55:11+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2023-01-13T16:14:46+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@daniele_pais\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Quick and easy make a WordPress Plugin \u2013 level 2 | dp\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Make a WordPress plugin: In today&#039;s tutorial we are going to make a WordPress that adds a ribbon (label) with a link on the left corner of the page.\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2017\/10\/daniele-pais-digital-design.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/quick-and-easy-make-a-wordpress-plugin-level-2\\\/#article\",\"name\":\"Quick and easy make a WordPress Plugin \\u2013 level 2 | dp\",\"headline\":\"Quick and easy make a WordPress Plugin &#8211; level 2\",\"author\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/author\\\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/Quick-easy-make-a-WordPress-Plugin-\\u2013-level-2.jpg\",\"width\":800,\"height\":450,\"caption\":\"Quick easy make a WordPress Plugin \\u2013 level 2\"},\"datePublished\":\"2023-01-05T16:55:11+07:00\",\"dateModified\":\"2023-01-13T23:14:46+07:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/quick-and-easy-make-a-wordpress-plugin-level-2\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/quick-and-easy-make-a-wordpress-plugin-level-2\\\/#webpage\"},\"articleSection\":\"Web Development, Wordpress, make a plugin, plugin development\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/quick-and-easy-make-a-wordpress-plugin-level-2\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/danielepais.com\\\/journal\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/category\\\/web\\\/#listItem\",\"name\":\"Web\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/category\\\/web\\\/#listItem\",\"position\":2,\"name\":\"Web\",\"item\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/category\\\/web\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/category\\\/web\\\/wordpress\\\/#listItem\",\"name\":\"Wordpress\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/category\\\/web\\\/wordpress\\\/#listItem\",\"position\":3,\"name\":\"Wordpress\",\"item\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/category\\\/web\\\/wordpress\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/quick-and-easy-make-a-wordpress-plugin-level-2\\\/#listItem\",\"name\":\"Quick and easy make a WordPress Plugin &#8211; level 2\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/category\\\/web\\\/#listItem\",\"name\":\"Web\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/quick-and-easy-make-a-wordpress-plugin-level-2\\\/#listItem\",\"position\":4,\"name\":\"Quick and easy make a WordPress Plugin &#8211; level 2\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/category\\\/web\\\/wordpress\\\/#listItem\",\"name\":\"Wordpress\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/#person\",\"name\":\"Daniele Pais\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/quick-and-easy-make-a-wordpress-plugin-level-2\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/86bedf0ab24a6d4a4f32de230cc797ef?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Daniele Pais\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/author\\\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\\\/#author\",\"url\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/author\\\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\\\/\",\"name\":\"Daniele Pais\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/quick-and-easy-make-a-wordpress-plugin-level-2\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/86bedf0ab24a6d4a4f32de230cc797ef?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Daniele Pais\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/quick-and-easy-make-a-wordpress-plugin-level-2\\\/#webpage\",\"url\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/quick-and-easy-make-a-wordpress-plugin-level-2\\\/\",\"name\":\"Quick and easy make a WordPress Plugin \\u2013 level 2 | dp\",\"description\":\"Make a WordPress plugin: In today's tutorial we are going to make a WordPress that adds a ribbon (label) with a link on the left corner of the page.\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/quick-and-easy-make-a-wordpress-plugin-level-2\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/author\\\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/author\\\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/Quick-easy-make-a-WordPress-Plugin-\\u2013-level-2.jpg\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/quick-and-easy-make-a-wordpress-plugin-level-2\\\/#mainImage\",\"width\":800,\"height\":450,\"caption\":\"Quick easy make a WordPress Plugin \\u2013 level 2\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/quick-and-easy-make-a-wordpress-plugin-level-2\\\/#mainImage\"},\"datePublished\":\"2023-01-05T16:55:11+07:00\",\"dateModified\":\"2023-01-13T23:14:46+07:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/#website\",\"url\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/\",\"name\":\"Phuket Web Design\",\"description\":\"Digital Print\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/danielepais.com\\\/journal\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Quick and easy make a WordPress Plugin \u2013 level 2 | dp","description":"Make a WordPress plugin: In today's tutorial we are going to make a WordPress that adds a ribbon (label) with a link on the left corner of the page.","canonical_url":"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/","robots":"max-image-preview:large","keywords":"make a plugin,plugin development,web development,wordpress","webmasterTools":{"google-site-verification":"googleb91c9505ed997b99","msvalidate.01":"AD1C96C338E051848BE08C67378B20CA","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#article","name":"Quick and easy make a WordPress Plugin \u2013 level 2 | dp","headline":"Quick and easy make a WordPress Plugin &#8211; level 2","author":{"@id":"https:\/\/danielepais.com\/journal\/author\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\/#author"},"publisher":{"@id":"https:\/\/danielepais.com\/journal\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2022\/12\/Quick-easy-make-a-WordPress-Plugin-\u2013-level-2.jpg","width":800,"height":450,"caption":"Quick easy make a WordPress Plugin \u2013 level 2"},"datePublished":"2023-01-05T16:55:11+07:00","dateModified":"2023-01-13T23:14:46+07:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#webpage"},"isPartOf":{"@id":"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#webpage"},"articleSection":"Web Development, Wordpress, make a plugin, plugin development"},{"@type":"BreadcrumbList","@id":"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/danielepais.com\/journal#listItem","position":1,"name":"Home","item":"https:\/\/danielepais.com\/journal","nextItem":{"@type":"ListItem","@id":"https:\/\/danielepais.com\/journal\/category\/web\/#listItem","name":"Web"}},{"@type":"ListItem","@id":"https:\/\/danielepais.com\/journal\/category\/web\/#listItem","position":2,"name":"Web","item":"https:\/\/danielepais.com\/journal\/category\/web\/","nextItem":{"@type":"ListItem","@id":"https:\/\/danielepais.com\/journal\/category\/web\/wordpress\/#listItem","name":"Wordpress"},"previousItem":{"@type":"ListItem","@id":"https:\/\/danielepais.com\/journal#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/danielepais.com\/journal\/category\/web\/wordpress\/#listItem","position":3,"name":"Wordpress","item":"https:\/\/danielepais.com\/journal\/category\/web\/wordpress\/","nextItem":{"@type":"ListItem","@id":"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#listItem","name":"Quick and easy make a WordPress Plugin &#8211; level 2"},"previousItem":{"@type":"ListItem","@id":"https:\/\/danielepais.com\/journal\/category\/web\/#listItem","name":"Web"}},{"@type":"ListItem","@id":"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#listItem","position":4,"name":"Quick and easy make a WordPress Plugin &#8211; level 2","previousItem":{"@type":"ListItem","@id":"https:\/\/danielepais.com\/journal\/category\/web\/wordpress\/#listItem","name":"Wordpress"}}]},{"@type":"Person","@id":"https:\/\/danielepais.com\/journal\/#person","name":"Daniele Pais","image":{"@type":"ImageObject","@id":"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/86bedf0ab24a6d4a4f32de230cc797ef?s=96&d=mm&r=g","width":96,"height":96,"caption":"Daniele Pais"}},{"@type":"Person","@id":"https:\/\/danielepais.com\/journal\/author\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\/#author","url":"https:\/\/danielepais.com\/journal\/author\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\/","name":"Daniele Pais","image":{"@type":"ImageObject","@id":"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/86bedf0ab24a6d4a4f32de230cc797ef?s=96&d=mm&r=g","width":96,"height":96,"caption":"Daniele Pais"}},{"@type":"WebPage","@id":"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#webpage","url":"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/","name":"Quick and easy make a WordPress Plugin \u2013 level 2 | dp","description":"Make a WordPress plugin: In today's tutorial we are going to make a WordPress that adds a ribbon (label) with a link on the left corner of the page.","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/danielepais.com\/journal\/#website"},"breadcrumb":{"@id":"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#breadcrumblist"},"author":{"@id":"https:\/\/danielepais.com\/journal\/author\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\/#author"},"creator":{"@id":"https:\/\/danielepais.com\/journal\/author\/_-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2-2--2\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2022\/12\/Quick-easy-make-a-WordPress-Plugin-\u2013-level-2.jpg","@id":"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#mainImage","width":800,"height":450,"caption":"Quick easy make a WordPress Plugin \u2013 level 2"},"primaryImageOfPage":{"@id":"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/#mainImage"},"datePublished":"2023-01-05T16:55:11+07:00","dateModified":"2023-01-13T23:14:46+07:00"},{"@type":"WebSite","@id":"https:\/\/danielepais.com\/journal\/#website","url":"https:\/\/danielepais.com\/journal\/","name":"Phuket Web Design","description":"Digital Print","inLanguage":"en-US","publisher":{"@id":"https:\/\/danielepais.com\/journal\/#person"}}]},"og:locale":"en_US","og:site_name":"Daniele Pais Blog","og:type":"article","og:title":"Quick and easy make a WordPress Plugin \u2013 level 2 | dp","og:description":"Make a WordPress plugin: In today's tutorial we are going to make a WordPress that adds a ribbon (label) with a link on the left corner of the page.","og:url":"https:\/\/danielepais.com\/journal\/quick-and-easy-make-a-wordpress-plugin-level-2\/","og:image":"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2022\/12\/Quick-easy-make-a-WordPress-Plugin-\u2013-level-2.jpg","og:image:secure_url":"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2022\/12\/Quick-easy-make-a-WordPress-Plugin-\u2013-level-2.jpg","og:image:width":800,"og:image:height":450,"article:published_time":"2023-01-05T09:55:11+00:00","article:modified_time":"2023-01-13T16:14:46+00:00","twitter:card":"summary","twitter:site":"@daniele_pais","twitter:title":"Quick and easy make a WordPress Plugin \u2013 level 2 | dp","twitter:description":"Make a WordPress plugin: In today's tutorial we are going to make a WordPress that adds a ribbon (label) with a link on the left corner of the page.","twitter:image":"https:\/\/danielepais.com\/journal\/wp-content\/uploads\/2017\/10\/daniele-pais-digital-design.png"},"aioseo_meta_data":{"post_id":"4789","title":"#post_title | dp","description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"make a WordPress Plugin","score":90,"analysis":{"keyphraseInTitle":{"title":"Focus keyphrase in SEO title","description":"Focus keyphrase found in SEO title.","score":9,"maxScore":9,"error":0},"keyphraseInDescription":{"title":"Focus keyphrase in meta description","description":"Focus keyphrase found in meta description.","score":9,"maxScore":9,"error":0},"keyphraseLength":{"title":"Focus keyphrase length","description":"Good job!","score":9,"maxScore":9,"error":0,"length":4},"keyphraseInURL":{"title":"Focus keyphrase in URL","description":"Focus keyphrase used in the URL.","score":5,"maxScore":5,"error":0},"keyphraseInIntroduction":{"title":"Focus keyphrase in introduction","description":"Your Focus keyphrase appears in the first paragraph. Well done!","score":9,"maxScore":9,"error":0},"keyphraseInSubHeadings":{"title":"Focus keyphrase in Subheadings","description":"Use your focus keyphrase more in your H2 and H3 subheadings.","score":3,"maxScore":9,"error":1},"keyphraseInImageAlt":{"title":"Focus keyphrase in image alt attributes","description":"Focus keyphrase found in image alt attribute(s).","score":9,"maxScore":9,"error":0}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"created":"2022-12-23 18:33:33","updated":"2025-06-11 19:05:11","ai":null,"seo_analyzer_scan_date":null},"_links":{"self":[{"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/posts\/4789"}],"collection":[{"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/comments?post=4789"}],"version-history":[{"count":0,"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/posts\/4789\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/media\/4812"}],"wp:attachment":[{"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/media?parent=4789"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/categories?post=4789"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/danielepais.com\/journal\/wp-json\/wp\/v2\/tags?post=4789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}