{"id":594,"date":"2015-05-17T20:24:52","date_gmt":"2015-05-17T20:24:52","guid":{"rendered":"https:\/\/www.codexworld.com\/?p=594"},"modified":"2016-04-22T17:40:16","modified_gmt":"2016-04-22T17:40:16","slug":"create-custom-wordpress-widget-from-scratch","status":"publish","type":"post","link":"https:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/","title":{"rendered":"Create Custom WordPress Widget from Scratch"},"content":{"rendered":"<p>WordPress Widgets is used to add content and features to Sidebar. Some default widgets are come with the WordPress (Search, Categories, Tag Cloud etc.). We can also create custom widgets as per our needs.<\/p>\n<p>Today we will learn how to create custom WordPress widgets. For testing purpose we will create an Author Profile Widget. Author Widget would be used to display author information (Picture, Name, Introduction, Location, and Email) at the sidebar. Follow the step by step instructions given below.<\/p>\n<p><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;Create a folder named <code>widgets<\/code> into the current theme directory.<\/p>\n<p><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;Create a PHP file named <code>author-widget.php<\/code>.<\/p>\n<p><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;Provide widget details under the comment tags (It is not mandatory).<\/p>\n<pre><span style=\"color: #000000\"><span style=\"color: #FF8000\">\/**<br \/>&nbsp;*&nbsp;Plugin&nbsp;Name:&nbsp;Author&nbsp;Widget<br \/>&nbsp;*&nbsp;Plugin&nbsp;URI:&nbsp;create-custom-wordpress-widget-from-scratch<br \/>&nbsp;*&nbsp;Description:&nbsp;Provides&nbsp;a&nbsp;widget&nbsp;for&nbsp;display&nbsp;blog&nbsp;author&nbsp;information<br \/>&nbsp;*&nbsp;Version:&nbsp;1.0<br \/>&nbsp;*&nbsp;Author:&nbsp;CodexWorld<br \/>&nbsp;*&nbsp;Author&nbsp;URI:&nbsp;http:\/\/www.codexworld.com<br \/>&nbsp;*\/<\/span><\/span><\/pre>\n<p><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;Using the <code>add_action()<\/code> function we will hook <code>codexworld_author_widget()<\/code> to <code>widgets_init<\/code> action. <code>codexworld_author_widget()<\/code> function register a widget with <code>Codexworld_Author_Widget<\/code> class.<\/p>\n<pre><span style=\"color: #000000\"><span style=\"color: #FF8000\">\/\/&nbsp;load&nbsp;widget<br \/><\/span><span style=\"color: #0000BB\">add_action<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #DD0000\">'widgets_init'<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #DD0000\">'codexworld_author_widget'&nbsp;<\/span><span style=\"color: #007700\">);<br \/><br \/><\/span><span style=\"color: #FF8000\">\/\/&nbsp;Register&nbsp;widget<br \/><\/span><span style=\"color: #007700\">function&nbsp;<\/span><span style=\"color: #0000BB\">codexworld_author_widget<\/span><span style=\"color: #007700\">()&nbsp;{<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">register_widget<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #DD0000\">'Codexworld_Author_Widget'&nbsp;<\/span><span style=\"color: #007700\">);<br \/>}<\/span><\/span><\/pre>\n<p><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;<code>Codexworld_Author_Widget<\/code> class extends <code>WP_Widget<\/code>.<\/p>\n<pre><span style=\"color: #000000\"><span style=\"color: #FF8000\">\/\/&nbsp;Widget&nbsp;class<br \/><\/span><span style=\"color: #007700\">class&nbsp;<\/span><span style=\"color: #0000BB\">Codexworld_Author_Widget&nbsp;<\/span><span style=\"color: #007700\">extends&nbsp;<\/span><span style=\"color: #0000BB\">WP_Widget&nbsp;<\/span><span style=\"color: #007700\">{<br \/><br \/>}<\/span><\/span><\/pre>\n<p><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;Into the <code>Codexworld_Author_Widget<\/code> class, <code>codexworld_author_widget()<\/code> function will used to create custom widget.<\/p>\n<pre><span style=\"color: #000000\"><span style=\"color: #007700\">function&nbsp;<\/span><span style=\"color: #0000BB\">codexworld_author_widget<\/span><span style=\"color: #007700\">()&nbsp;{<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #FF8000\">\/\/&nbsp;Widget&nbsp;settings<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$widget_ops&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;array&nbsp;(<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'classname'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #DD0000\">'codexworld_author_widget'<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'description'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #0000BB\">__<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">'A&nbsp;widget&nbsp;for&nbsp;display&nbsp;author&nbsp;information'<\/span><span style=\"color: #007700\">)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;);<br \/><br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #FF8000\">\/\/&nbsp;Widget&nbsp;control&nbsp;settings<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$control_ops&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;array&nbsp;(<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'width'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #0000BB\">300<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'height'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #0000BB\">350<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'id_base'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #DD0000\">'codexworld_author_widget'<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #007700\">);<br \/><br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #FF8000\">\/\/&nbsp;Create&nbsp;the&nbsp;widget<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$this<\/span><span style=\"color: #007700\">-&gt;<\/span><span style=\"color: #0000BB\">WP_Widget<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #DD0000\">'codexworld_author_widget'<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">__<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">'Author&nbsp;Profile'<\/span><span style=\"color: #007700\">),&nbsp;<\/span><span style=\"color: #0000BB\">$widget_ops<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">$control_ops&nbsp;<\/span><span style=\"color: #007700\">);<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<br \/>}<\/span><\/span><\/pre>\n<p><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;We will use <code>widget()<\/code> function for display the widget content at the sidebar.<\/p>\n<pre><span style=\"color: #000000\"><span style=\"color: #FF8000\">\/**<br \/>&nbsp;*&nbsp;Display&nbsp;Widget<br \/>&nbsp;*\/<br \/><\/span><span style=\"color: #007700\">function&nbsp;<\/span><span style=\"color: #0000BB\">widget<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #0000BB\">$args<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">$instance&nbsp;<\/span><span style=\"color: #007700\">)&nbsp;{<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">extract<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #0000BB\">$args&nbsp;<\/span><span style=\"color: #007700\">);<br \/><br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #FF8000\">\/\/&nbsp;variables&nbsp;from&nbsp;the&nbsp;widget&nbsp;settings<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$title&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">apply_filters<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">'widget_title'<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">$instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'title'<\/span><span style=\"color: #007700\">]&nbsp;);<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$name&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">$instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'name'<\/span><span style=\"color: #007700\">];<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$picture&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">$instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'picture'<\/span><span style=\"color: #007700\">];<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$introduction&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">$instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'introduction'<\/span><span style=\"color: #007700\">];<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$location&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">$instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'location'<\/span><span style=\"color: #007700\">];<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$email&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">$instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'email'<\/span><span style=\"color: #007700\">];<br \/><br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #FF8000\">\/\/&nbsp;Before&nbsp;widget&nbsp;(defined&nbsp;by&nbsp;theme&nbsp;functions&nbsp;file)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #007700\">echo&nbsp;<\/span><span style=\"color: #0000BB\">$before_widget<\/span><span style=\"color: #007700\">;<br \/><br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #FF8000\">\/\/&nbsp;Display&nbsp;widget&nbsp;title<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #007700\">if&nbsp;(&nbsp;<\/span><span style=\"color: #0000BB\">$title&nbsp;<\/span><span style=\"color: #007700\">)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;<\/span><span style=\"color: #0000BB\">$before_title&nbsp;<\/span><span style=\"color: #007700\">.&nbsp;<\/span><span style=\"color: #0000BB\">$title&nbsp;<\/span><span style=\"color: #007700\">.&nbsp;<\/span><span style=\"color: #0000BB\">$after_title<\/span><span style=\"color: #007700\">;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #FF8000\">\/\/&nbsp;Display&nbsp;author&nbsp;picture<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #007700\">echo&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;div&nbsp;class=\"profile-pic\"&gt;'<\/span><span style=\"color: #007700\">;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;if&nbsp;(&nbsp;<\/span><span style=\"color: #0000BB\">$picture&nbsp;<\/span><span style=\"color: #007700\">)&nbsp;&nbsp;&nbsp;&nbsp;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;img&nbsp;src=\"'<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #0000BB\">$picture<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #DD0000\">'\"&nbsp;alt=\"'<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #0000BB\">$name<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #DD0000\">'\\'s&nbsp;Picture\"&nbsp;title=\"'<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #0000BB\">$name<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #DD0000\">'\"\/&gt;'<\/span><span style=\"color: #007700\">;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;\/div&gt;'<\/span><span style=\"color: #007700\">;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;div&nbsp;class=\"profile_meta\"&gt;'<\/span><span style=\"color: #007700\">;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #FF8000\">\/\/&nbsp;Display&nbsp;the&nbsp;author&nbsp;name<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #007700\">if&nbsp;(&nbsp;<\/span><span style=\"color: #0000BB\">$name&nbsp;<\/span><span style=\"color: #007700\">)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;span&gt;&lt;b&gt;'<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #0000BB\">$name<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #DD0000\">'&lt;\/b&gt;&lt;\/span&gt;&lt;br\/&gt;'<\/span><span style=\"color: #007700\">;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #FF8000\">\/\/&nbsp;Display&nbsp;author&nbsp;introduction<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #007700\">if&nbsp;(&nbsp;<\/span><span style=\"color: #0000BB\">$introduction&nbsp;<\/span><span style=\"color: #007700\">)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;span&gt;'<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #0000BB\">$introduction<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #DD0000\">'&lt;\/span&gt;&lt;br\/&gt;'<\/span><span style=\"color: #007700\">;\r\n<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #FF8000\">\/\/&nbsp;Display&nbsp;author&nbsp;location<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #007700\">if&nbsp;(&nbsp;<\/span><span style=\"color: #0000BB\">$location&nbsp;<\/span><span style=\"color: #007700\">)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;span&gt;'<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #0000BB\">$location<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #DD0000\">'&lt;\/span&gt;&lt;br\/&gt;'<\/span><span style=\"color: #007700\">;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #FF8000\">\/\/&nbsp;Display&nbsp;author&nbsp;email<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #007700\">if&nbsp;(&nbsp;<\/span><span style=\"color: #0000BB\">$email&nbsp;<\/span><span style=\"color: #007700\">)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;span&gt;&lt;a&nbsp;href=\"mailto:'<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #0000BB\">$email<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #DD0000\">'\"&gt;'<\/span><span style=\"color: #007700\">.<\/span><span style=\"color: #0000BB\">str_replace<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #DD0000\">\"@\"<\/span><span style=\"color: #007700\">,<\/span><span style=\"color: #DD0000\">'[at]'<\/span><span style=\"color: #007700\">,<\/span><span style=\"color: #0000BB\">$email<\/span><span style=\"color: #007700\">).<\/span><span style=\"color: #DD0000\">'&lt;\/a&gt;&lt;\/span&gt;&lt;br\/&gt;'<\/span><span style=\"color: #007700\">;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;echo&nbsp;<\/span><span style=\"color: #DD0000\">'&lt;\/div&gt;'<\/span><span style=\"color: #007700\">;<br \/><br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #FF8000\">\/\/&nbsp;After&nbsp;widget&nbsp;(defined&nbsp;by&nbsp;theme&nbsp;functions&nbsp;file)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #007700\">echo&nbsp;<\/span><span style=\"color: #0000BB\">$after_widget<\/span><span style=\"color: #007700\">;<br \/>}<\/span><\/span><\/pre>\n<p><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;<code>update()<\/code> function helps to update the widget data.<\/p>\n<pre><span style=\"color: #000000\"><span style=\"color: #FF8000\">\/**<br \/>&nbsp;*&nbsp;Update&nbsp;Widget<br \/>&nbsp;*\/<br \/><\/span><span style=\"color: #007700\">function&nbsp;<\/span><span style=\"color: #0000BB\">update<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #0000BB\">$new_instance<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">$old_instance&nbsp;<\/span><span style=\"color: #007700\">)&nbsp;{<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$instance&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">$old_instance<\/span><span style=\"color: #007700\">;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #FF8000\">\/\/&nbsp;Strip&nbsp;tags&nbsp;to&nbsp;remove&nbsp;HTML&nbsp;(important&nbsp;for&nbsp;text&nbsp;inputs)<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'title'<\/span><span style=\"color: #007700\">]&nbsp;=&nbsp;<\/span><span style=\"color: #0000BB\">strip_tags<\/span><span style=\"color: #007700\">(<\/span><span style=\"color: #0000BB\">$new_instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'title'<\/span><span style=\"color: #007700\">]);<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #FF8000\">\/\/&nbsp;No&nbsp;need&nbsp;to&nbsp;strip&nbsp;tags<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'name'<\/span><span style=\"color: #007700\">]&nbsp;=&nbsp;<\/span><span style=\"color: #0000BB\">$new_instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'name'<\/span><span style=\"color: #007700\">];<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'picture'<\/span><span style=\"color: #007700\">]&nbsp;=&nbsp;<\/span><span style=\"color: #0000BB\">$new_instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'picture'<\/span><span style=\"color: #007700\">];<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'introduction'<\/span><span style=\"color: #007700\">]&nbsp;=&nbsp;<\/span><span style=\"color: #0000BB\">$new_instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'introduction'<\/span><span style=\"color: #007700\">];<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'location'<\/span><span style=\"color: #007700\">]&nbsp;=&nbsp;<\/span><span style=\"color: #0000BB\">$new_instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'location'<\/span><span style=\"color: #007700\">];<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'email'<\/span><span style=\"color: #007700\">]&nbsp;=&nbsp;<\/span><span style=\"color: #0000BB\">$new_instance<\/span><span style=\"color: #007700\">[<\/span><span style=\"color: #DD0000\">'email'<\/span><span style=\"color: #007700\">];<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;return&nbsp;<\/span><span style=\"color: #0000BB\">$instance<\/span><span style=\"color: #007700\">;<br \/>}<\/span><\/span><\/pre>\n<p><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;<code>form()<\/code> function is used to appearing the widget form at the <b>wp-admin Widgets area<\/b>.<\/p>\n<pre><span style=\"color: #000000\"><span style=\"color: #FF8000\">\/**<br \/>&nbsp;*&nbsp;Displays&nbsp;the&nbsp;widget&nbsp;settings&nbsp;controls&nbsp;on&nbsp;the&nbsp;widget&nbsp;panel<br \/>&nbsp;*\/<br \/><\/span><span style=\"color: #007700\">function&nbsp;<\/span><span style=\"color: #0000BB\">form<\/span><span style=\"color: #007700\">(&nbsp;<\/span><span style=\"color: #0000BB\">$instance&nbsp;<\/span><span style=\"color: #007700\">)&nbsp;{<br \/><br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #FF8000\">\/\/&nbsp;Set&nbsp;up&nbsp;some&nbsp;default&nbsp;widget&nbsp;settings<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$defaults&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;array(\r\n<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'title'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #DD0000\">''<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'picture'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #DD0000\">''<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'name'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #DD0000\">''<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'introduction'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #DD0000\">''<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'location'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #DD0000\">''<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #DD0000\">'email'&nbsp;<\/span><span style=\"color: #007700\">=&gt;&nbsp;<\/span><span style=\"color: #DD0000\">''<\/span><span style=\"color: #007700\">,<br \/>&nbsp;&nbsp;&nbsp;&nbsp;);<br \/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br \/>&nbsp;&nbsp;&nbsp;&nbsp;<\/span><span style=\"color: #0000BB\">$instance&nbsp;<\/span><span style=\"color: #007700\">=&nbsp;<\/span><span style=\"color: #0000BB\">wp_parse_args<\/span><span style=\"color: #007700\">(&nbsp;(array)&nbsp;<\/span><span style=\"color: #0000BB\">$instance<\/span><span style=\"color: #007700\">,&nbsp;<\/span><span style=\"color: #0000BB\">$defaults&nbsp;<\/span><span style=\"color: #007700\">);&nbsp;<\/span><span style=\"color: #DD0000\">?&gt;<br \/><\/span>\r\n    <span style=\"color:#5a525f;font-style:italic\">&lt;!-- Widget Title: Text Input --><\/span>\r\n    &lt;<span style=\"color:#bf4f24\">p<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">for<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_id( <span style=\"color:#0b6125\">'title'<\/span> ); ?><\/span>\"<\/span>><span style=\"background:rgba(111,139,186,0.15)\">&lt;?php _e(<span style=\"color:#0b6125\">'Title:'<\/span>) ?><\/span>&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"widefat\"<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_id( <span style=\"color:#0b6125\">'title'<\/span> ); ?><\/span>\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_name( <span style=\"color:#0b6125\">'title'<\/span> ); ?><\/span>\"<\/span> <span style=\"color:#bf4f24\">value<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$instance<\/span>[<span style=\"color:#0b6125\">'title'<\/span>]; ?><\/span>\"<\/span> \/>\r\n    &lt;\/<span style=\"color:#bf4f24\">p<\/span>>\r\n\r\n    <span style=\"color:#5a525f;font-style:italic\">&lt;!-- Picture URL: Text Input --><\/span>\r\n    &lt;<span style=\"color:#bf4f24\">p<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">for<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_id( <span style=\"color:#0b6125\">'picture'<\/span> ); ?><\/span>\"<\/span>><span style=\"background:rgba(111,139,186,0.15)\">&lt;?php _e(<span style=\"color:#0b6125\">'Picture URL:'<\/span>) ?><\/span>&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"widefat\"<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_id( <span style=\"color:#0b6125\">'picture'<\/span> ); ?><\/span>\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_name( <span style=\"color:#0b6125\">'picture'<\/span> ); ?><\/span>\"<\/span> <span style=\"color:#bf4f24\">value<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$instance<\/span>[<span style=\"color:#0b6125\">'picture'<\/span>]; ?><\/span>\"<\/span> \/>\r\n    &lt;\/<span style=\"color:#bf4f24\">p<\/span>>\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">&lt;!-- Name: Text Input --><\/span>\r\n    &lt;<span style=\"color:#bf4f24\">p<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">for<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_id( <span style=\"color:#0b6125\">'name'<\/span> ); ?><\/span>\"<\/span>><span style=\"background:rgba(111,139,186,0.15)\">&lt;?php _e(<span style=\"color:#0b6125\">'Name:'<\/span>) ?><\/span>&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"text\"<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"widefat\"<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_id( <span style=\"color:#0b6125\">'name'<\/span> ); ?><\/span>\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_name( <span style=\"color:#0b6125\">'name'<\/span> ); ?><\/span>\"<\/span> <span style=\"color:#bf4f24\">value<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$instance<\/span>[<span style=\"color:#0b6125\">'name'<\/span>]; ?><\/span>\"<\/span> \/>\r\n    &lt;\/<span style=\"color:#bf4f24\">p<\/span>>\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">&lt;!-- Introduction: Text Input --><\/span>\r\n    &lt;<span style=\"color:#bf4f24\">p<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">for<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_id( <span style=\"color:#0b6125\">'introduction'<\/span> ); ?><\/span>\"<\/span>><span style=\"background:rgba(111,139,186,0.15)\">&lt;?php _e(<span style=\"color:#0b6125\">'Introduction:'<\/span>) ?><\/span>&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"text\"<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"widefat\"<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_id( <span style=\"color:#0b6125\">'introduction'<\/span> ); ?><\/span>\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_name( <span style=\"color:#0b6125\">'introduction'<\/span> ); ?><\/span>\"<\/span> <span style=\"color:#bf4f24\">value<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$instance<\/span>[<span style=\"color:#0b6125\">'introduction'<\/span>]; ?><\/span>\"<\/span> \/>\r\n    &lt;\/<span style=\"color:#bf4f24\">p<\/span>>\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">&lt;!-- Location: Text Input --><\/span>\r\n    &lt;<span style=\"color:#bf4f24\">p<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">for<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_id( <span style=\"color:#0b6125\">'location'<\/span> ); ?><\/span>\"<\/span>><span style=\"background:rgba(111,139,186,0.15)\">&lt;?php _e(<span style=\"color:#0b6125\">'Location:'<\/span>) ?><\/span>&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"text\"<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"widefat\"<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_id( <span style=\"color:#0b6125\">'location'<\/span> ); ?><\/span>\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_name( <span style=\"color:#0b6125\">'location'<\/span> ); ?><\/span>\"<\/span> <span style=\"color:#bf4f24\">value<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$instance<\/span>[<span style=\"color:#0b6125\">'location'<\/span>]; ?><\/span>\"<\/span> \/>\r\n    &lt;\/<span style=\"color:#bf4f24\">p<\/span>>\r\n    \r\n    <span style=\"color:#5a525f;font-style:italic\">&lt;!-- Email: Text Input --><\/span>\r\n    &lt;<span style=\"color:#bf4f24\">p<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">label<\/span> <span style=\"color:#bf4f24\">for<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_id( <span style=\"color:#0b6125\">'email'<\/span> ); ?><\/span>\"<\/span>><span style=\"background:rgba(111,139,186,0.15)\">&lt;?php _e(<span style=\"color:#0b6125\">'Email:'<\/span>) ?><\/span>&lt;\/<span style=\"color:#bf4f24\">label<\/span>>\r\n        &lt;<span style=\"color:#bf4f24\">input<\/span> <span style=\"color:#bf4f24\">type<\/span>=<span style=\"color:#0b6125\">\"text\"<\/span> <span style=\"color:#bf4f24\">class<\/span>=<span style=\"color:#0b6125\">\"widefat\"<\/span> <span style=\"color:#bf4f24\">id<\/span><span style=\"color:#794938\">=<\/span><span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_id( <span style=\"color:#0b6125\">'email'<\/span> ); ?><\/span>\"<\/span> <span style=\"color:#bf4f24\">name<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$this<\/span><span style=\"color:#794938\">-><\/span>get_field_name( <span style=\"color:#0b6125\">'email'<\/span> ); ?><\/span>\"<\/span> <span style=\"color:#bf4f24\">value<\/span>=<span style=\"color:#0b6125\">\"<span style=\"background:rgba(111,139,186,0.15);color:#080808\">&lt;?php <span style=\"color:#693a17\">echo<\/span> <span style=\"color:#234a97\">$instance<\/span>[<span style=\"color:#0b6125\">'email'<\/span>]; ?><\/span>\"<\/span> \/>\r\n    &lt;\/<span style=\"color:#bf4f24\">p<\/span>><br \/><span style=\"color: #DD0000\">&lt;?php<br \/><\/span><span style=\"color: #007700\">}<\/span><\/span><\/pre>\n<p><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;You can get the full script of the <code>author-widget.php<\/code> from the below <i>Download Source Code link<\/i>.<\/p>\n<p><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;Now open the <code>function.php<\/code> file of current theme and include the <code>author-widget.php<\/code> file by the following code.<\/p>\n<pre><span style=\"color: #000000\"><span style=\"color: #FF8000\">\/**<br \/>&nbsp;*&nbsp;Add&nbsp;the&nbsp;Custom&nbsp;Author&nbsp;Profile&nbsp;Widget<br \/>&nbsp;*\/<br \/><\/span><span style=\"color: #007700\">require&nbsp;<\/span><span style=\"color: #0000BB\">get_template_directory<\/span><span style=\"color: #007700\">()&nbsp;.&nbsp;<\/span><span style=\"color: #DD0000\">'\/widgets\/author-widget.php'<\/span><span style=\"color: #007700\">;<\/span><\/span><\/pre>\n<p><span class=\"glyphicon glyphicon-forward\"><\/span>&nbsp;Go to the <b>WP Admin Widgets<\/b> section (<a href=\"http:\/\/localhost\/nitya\/wordpress\/wp-admin\/widgets.php\" target=\"_blank\">http:\/\/localhost\/nitya\/wordpress\/wp-admin\/widgets.php<\/a>).  <\/p>\n<ul>\n<li><span class=\"glyphicon glyphicon glyphicon-hand-right\" style=\"font-size: 13px;\"><\/span>&nbsp;You can see the <b>Author Profile<\/b> widget available at the <b>Available Widgets<\/b> section.\n<div class=\"img_center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/custom-wordpress-widget-at-the-widget-section-by-codexworld.png\" alt=\"custom-wordpress-widget-at-the-widget-section-by-codexworld\" width=\"940\" height=\"551\" class=\"alignnone size-full wp-image-595\" srcset=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/custom-wordpress-widget-at-the-widget-section-by-codexworld.png 940w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/custom-wordpress-widget-at-the-widget-section-by-codexworld-300x176.png 300w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/custom-wordpress-widget-at-the-widget-section-by-codexworld-200x117.png 200w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/custom-wordpress-widget-at-the-widget-section-by-codexworld-346x203.png 346w\" sizes=\"auto, (max-width: 940px) 100vw, 940px\" \/><\/div>\n<\/li>\n<li><span class=\"glyphicon glyphicon glyphicon-hand-right\" style=\"font-size: 13px;\"><\/span>&nbsp;Drag <b>Author Profile<\/b> widget and drop into the <b>Widget Area<\/b>. <b>Author Profile Widget<\/b> form would be appears. Insert the content of widget into the respective fields and save the form data.\n<div class=\"img_center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/custom-wordpress-widget-form-by-codexworld.png\" alt=\"custom-wordpress-widget-form-by-codexworld\" width=\"484\" height=\"568\" class=\"alignnone size-full wp-image-596\" srcset=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/custom-wordpress-widget-form-by-codexworld.png 484w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/custom-wordpress-widget-form-by-codexworld-256x300.png 256w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/custom-wordpress-widget-form-by-codexworld-200x235.png 200w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/custom-wordpress-widget-form-by-codexworld-196x230.png 196w\" sizes=\"auto, (max-width: 484px) 100vw, 484px\" \/><\/div>\n<\/li>\n<li><span class=\"glyphicon glyphicon glyphicon-hand-right\" style=\"font-size: 13px;\"><\/span>&nbsp;Go to the site front-end, you will see the <b>Author Profile Widget<\/b> with author information at the sidebar.\n<div class=\"img_center\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/custom-wordpress-widget-author-profile-by-codexworld.png\" alt=\"custom-wordpress-widget-author-profile-by-codexworld\" width=\"327\" height=\"320\" class=\"alignnone size-full wp-image-597\" srcset=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/custom-wordpress-widget-author-profile-by-codexworld.png 327w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/custom-wordpress-widget-author-profile-by-codexworld-300x294.png 300w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/custom-wordpress-widget-author-profile-by-codexworld-200x196.png 200w, https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/custom-wordpress-widget-author-profile-by-codexworld-235x230.png 235w\" sizes=\"auto, (max-width: 327px) 100vw, 327px\" \/><\/div>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>WordPress Widgets is used to add content and features to Sidebar. Some default widgets are come with the WordPress (Search, Categories, Tag Cloud etc.). We can also create custom widgets as per our needs. Today <\/p>\n","protected":false},"author":1,"featured_media":598,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[5],"tags":[],"class_list":["post-594","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-wordpress","cat-5-id","has_thumb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Create Custom WordPress Widget from Scratch - CodexWorld<\/title>\n<meta name=\"description\" content=\"WordPress custom widget creation - Step by step tutorial on how to create custom wordpress widget. Beginner&#039;s guide to make own WordPress widget.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create Custom WordPress Widget from Scratch - CodexWorld\" \/>\n<meta property=\"og:description\" content=\"WordPress custom widget creation - Step by step tutorial on how to create custom wordpress widget. Beginner&#039;s guide to make own WordPress widget.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/\" \/>\n<meta property=\"og:site_name\" content=\"CodexWorld\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/codexworld\" \/>\n<meta property=\"article:published_time\" content=\"2015-05-17T20:24:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-04-22T17:40:16+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/create-custom-wordpress-widget-by-codexworld.png\" \/>\n\t<meta property=\"og:image:width\" content=\"452\" \/>\n\t<meta property=\"og:image:height\" content=\"554\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"CodexWorld\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codexworldblog\" \/>\n<meta name=\"twitter:site\" content=\"@codexworldweb\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"CodexWorld\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-wordpress-widget-from-scratch\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-wordpress-widget-from-scratch\\\/\"},\"author\":{\"name\":\"CodexWorld\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\"},\"headline\":\"Create Custom WordPress Widget from Scratch\",\"datePublished\":\"2015-05-17T20:24:52+00:00\",\"dateModified\":\"2016-04-22T17:40:16+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-wordpress-widget-from-scratch\\\/\"},\"wordCount\":290,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-wordpress-widget-from-scratch\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2015\\\/05\\\/create-custom-wordpress-widget-by-codexworld.png\",\"articleSection\":[\"WordPress\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/create-custom-wordpress-widget-from-scratch\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-wordpress-widget-from-scratch\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-wordpress-widget-from-scratch\\\/\",\"name\":\"Create Custom WordPress Widget from Scratch - CodexWorld\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-wordpress-widget-from-scratch\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-wordpress-widget-from-scratch\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2015\\\/05\\\/create-custom-wordpress-widget-by-codexworld.png\",\"datePublished\":\"2015-05-17T20:24:52+00:00\",\"dateModified\":\"2016-04-22T17:40:16+00:00\",\"description\":\"WordPress custom widget creation - Step by step tutorial on how to create custom wordpress widget. Beginner's guide to make own WordPress widget.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-wordpress-widget-from-scratch\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.codexworld.com\\\/create-custom-wordpress-widget-from-scratch\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-wordpress-widget-from-scratch\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2015\\\/05\\\/create-custom-wordpress-widget-by-codexworld.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2015\\\/05\\\/create-custom-wordpress-widget-by-codexworld.png\",\"width\":452,\"height\":554,\"caption\":\"create-custom-wordpress-widget-by-codexworld\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/create-custom-wordpress-widget-from-scratch\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.codexworld.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Custom WordPress Widget from Scratch\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#website\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"name\":\"CodexWorld\",\"description\":\"Web &amp; Mobile App Development Company\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.codexworld.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#organization\",\"name\":\"CodexWorld\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.codexworld.com\\\/wp-content\\\/uploads\\\/2014\\\/09\\\/codexworld-logo.png\",\"width\":200,\"height\":19,\"caption\":\"CodexWorld\"},\"image\":{\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldweb\",\"https:\\\/\\\/www.linkedin.com\\\/company\\\/codexworld\",\"https:\\\/\\\/www.youtube.com\\\/codexworld\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.codexworld.com\\\/#\\\/schema\\\/person\\\/9da51d8fa3cdefeb5ec9c69136d4baf0\",\"name\":\"CodexWorld\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g\",\"caption\":\"CodexWorld\"},\"description\":\"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.\",\"sameAs\":[\"http:\\\/\\\/www.codexworld.com\",\"https:\\\/\\\/www.facebook.com\\\/codexworld\",\"https:\\\/\\\/x.com\\\/codexworldblog\"],\"url\":\"https:\\\/\\\/www.codexworld.com\\\/author\\\/nitya192265\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Create Custom WordPress Widget from Scratch - CodexWorld","description":"WordPress custom widget creation - Step by step tutorial on how to create custom wordpress widget. Beginner's guide to make own WordPress widget.","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:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/","og_locale":"en_US","og_type":"article","og_title":"Create Custom WordPress Widget from Scratch - CodexWorld","og_description":"WordPress custom widget creation - Step by step tutorial on how to create custom wordpress widget. Beginner's guide to make own WordPress widget.","og_url":"https:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/","og_site_name":"CodexWorld","article_publisher":"https:\/\/www.facebook.com\/codexworld","article_author":"https:\/\/www.facebook.com\/codexworld","article_published_time":"2015-05-17T20:24:52+00:00","article_modified_time":"2016-04-22T17:40:16+00:00","og_image":[{"width":452,"height":554,"url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/create-custom-wordpress-widget-by-codexworld.png","type":"image\/png"}],"author":"CodexWorld","twitter_card":"summary_large_image","twitter_creator":"@codexworldblog","twitter_site":"@codexworldweb","twitter_misc":{"Written by":"CodexWorld","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/#article","isPartOf":{"@id":"https:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/"},"author":{"name":"CodexWorld","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0"},"headline":"Create Custom WordPress Widget from Scratch","datePublished":"2015-05-17T20:24:52+00:00","dateModified":"2016-04-22T17:40:16+00:00","mainEntityOfPage":{"@id":"https:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/"},"wordCount":290,"commentCount":1,"publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"image":{"@id":"https:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/create-custom-wordpress-widget-by-codexworld.png","articleSection":["WordPress"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/","url":"https:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/","name":"Create Custom WordPress Widget from Scratch - CodexWorld","isPartOf":{"@id":"https:\/\/www.codexworld.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/#primaryimage"},"image":{"@id":"https:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/#primaryimage"},"thumbnailUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/create-custom-wordpress-widget-by-codexworld.png","datePublished":"2015-05-17T20:24:52+00:00","dateModified":"2016-04-22T17:40:16+00:00","description":"WordPress custom widget creation - Step by step tutorial on how to create custom wordpress widget. Beginner's guide to make own WordPress widget.","breadcrumb":{"@id":"https:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/#primaryimage","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/create-custom-wordpress-widget-by-codexworld.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/create-custom-wordpress-widget-by-codexworld.png","width":452,"height":554,"caption":"create-custom-wordpress-widget-by-codexworld"},{"@type":"BreadcrumbList","@id":"https:\/\/www.codexworld.com\/create-custom-wordpress-widget-from-scratch\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.codexworld.com\/"},{"@type":"ListItem","position":2,"name":"Create Custom WordPress Widget from Scratch"}]},{"@type":"WebSite","@id":"https:\/\/www.codexworld.com\/#website","url":"https:\/\/www.codexworld.com\/","name":"CodexWorld","description":"Web &amp; Mobile App Development Company","publisher":{"@id":"https:\/\/www.codexworld.com\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.codexworld.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.codexworld.com\/#organization","name":"CodexWorld","url":"https:\/\/www.codexworld.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/","url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","contentUrl":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2014\/09\/codexworld-logo.png","width":200,"height":19,"caption":"CodexWorld"},"image":{"@id":"https:\/\/www.codexworld.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldweb","https:\/\/www.linkedin.com\/company\/codexworld","https:\/\/www.youtube.com\/codexworld"]},{"@type":"Person","@id":"https:\/\/www.codexworld.com\/#\/schema\/person\/9da51d8fa3cdefeb5ec9c69136d4baf0","name":"CodexWorld","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/cf4999db3b409de559f80677afa01729bb2eeda19be273c254e8b2c22729e386?s=96&r=g","caption":"CodexWorld"},"description":"CodexWorld is a programming blog, one-stop destination for web professionals \u2014 developers, programmers, freelancers, and site owners.","sameAs":["http:\/\/www.codexworld.com","https:\/\/www.facebook.com\/codexworld","https:\/\/x.com\/codexworldblog"],"url":"https:\/\/www.codexworld.com\/author\/nitya192265\/"}]}},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/www.codexworld.com\/wp-content\/uploads\/2015\/05\/create-custom-wordpress-widget-by-codexworld.png","jetpack_shortlink":"https:\/\/wp.me\/p6bxIh-9A","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/comments?post=594"}],"version-history":[{"count":9,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/594\/revisions"}],"predecessor-version":[{"id":1446,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/posts\/594\/revisions\/1446"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media\/598"}],"wp:attachment":[{"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/media?parent=594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/categories?post=594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codexworld.com\/wp-json\/wp\/v2\/tags?post=594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}