{"id":369555,"date":"2023-03-13T10:06:10","date_gmt":"2023-03-13T10:06:10","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=369555"},"modified":"2026-01-28T10:35:49","modified_gmt":"2026-01-28T10:35:49","slug":"how-to-create-a-custom-elementor-widget-with-programming","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/","title":{"rendered":"Custom elementor widgets with programming"},"content":{"rendered":"\n<p>In this guide, we explain how to build a custom widget for the Elementor page builder in WordPress.<\/p>\n\n\n\n<p>We will walk through the complete process step by step. <\/p>\n\n\n\n<p>As a result, you can extend Elementor with your own functionality.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What You Will Learn<\/h2>\n\n\n\n<p>First, you will learn how to use the Elementor API. Next, you will add controls and settings to the widget. <\/p>\n\n\n\n<p>Then, you will display dynamic data on the frontend. By the end, you will have a working plugin for pages and posts.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1. Creating your own Elementor widget<\/h3>\n\n\n\n<p>To create a widget for the page builder plugin for WordPress, you will need to use the Elementor API. <\/p>\n\n\n\n<p>Here is a step-by-step guide on how to do this:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Install the plugin on your WordPress website if you haven\u2019t already.<\/li>\n\n\n\n<li>Create a new directory in the&nbsp;<code>wp-content\/plugins<\/code>&nbsp;directory on your WordPress site, and give it a name that describes your widget (e.g.&nbsp;<code>webkul-elementor-widget<\/code>).<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"819\" height=\"414\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/02\/ezgif-4-624dbfaedd.gif\" alt=\"elementor-plugin-image\" class=\"wp-image-369796\" loading=\"lazy\" \/><\/figure>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This code defines the basic information about your plugin, such as its name, description, and author.<\/li>\n\n\n\n<li>Next, create a new directory called\u00a0 &#8216;<code>webkul-elementor-widget<\/code>&#8216; \u00a0inside your plugin\u2019s directory, and create a new file called\u00a0<code>webkul-elementor-widget.php<\/code>\u00a0inside it.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Step 2. Create a widget<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\">class Webkul_Elementor_Widget extends \\Elementor\\Widget_Base {\n\n\t\t\/**\n\t\t * Returns the name of the widget.\n\t\t *\n\t\t * Used to generate the translation of the widget name.\n\t\t *\/\n\t\tpublic function get_name() {\n\t\t\treturn &#039;webkul_add_content&#039;;\n\t\t}\n\n\t\t\/**\n\t\t * * Return the title of the page.\n\t\t *\n\t\t * @return string\n\t\t *\/\n\t\tpublic function get_title() {\n\t\t\treturn esc_html__( &#039;Add Content&#039;, &#039;webkul&#039; );\n\t\t}\n\n\t\t\/**\n\t\t * @return string\n\t\t * @param void\n\t\t *\/\n\t\tpublic function get_icon() {\n\t\t\treturn &#039;eicon-code&#039;;\n\t\t}\n\n\t\t\/**\n\t\t * @return array\n\t\t * @param void\n\t\t *\/\n\t\tpublic function get_categories() {\n\t\t\treturn array( &#039;general&#039; );\n\t\t}\n\n\t\t\/**\n\t\t * Return the keywords of the widget.\n\t\t *\/\n\t\tpublic function get_keywords() {\n\t\t\treturn array( &#039;webkul&#039;, &#039;content&#039;, &#039;description&#039; );\n\t\t}\n\n\t\t\/**\n\t\t * Register widget controls.\n\t\t *\n\t\t * Adds different input fields to allow the user to change and customize the widget settings.\n\t\t *\/\n\t\tprotected function register_controls() {\n\n\t\t\t$this-&gt;start_controls_section(\n\t\t\t\t&#039;content_section&#039;,\n\t\t\t\tarray(\n\t\t\t\t\t&#039;label&#039; =&gt; esc_html__( &#039;Content&#039;, &#039;webkul&#039; ),\n\t\t\t\t\t&#039;tab&#039;   =&gt; \\Elementor\\Controls_Manager::TAB_CONTENT,\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t$this-&gt;add_control(\n\t\t\t\t&#039;text&#039;,\n\t\t\t\tarray(\n\t\t\t\t\t&#039;label&#039;   =&gt; esc_html__( &#039;Text&#039;, &#039;webkul&#039; ),\n\t\t\t\t\t&#039;type&#039;    =&gt; \\Elementor\\Controls_Manager::TEXT,\n\t\t\t\t\t&#039;default&#039; =&gt; esc_html__( &#039;Lorem Ipsum...&#039;, &#039;webkul&#039; ),\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t$this-&gt;end_controls_section();\n\t\t}\n\n\t\t\/**\n\t\t * * Render the widget content.\n\t\t *\/\n\t\tpublic function render() {\n\t\t\t$settings = $this-&gt;get_settings_for_display();\n\t\t\techo &#039;&lt;p&gt;&#039; . esc_html( $settings&#091;&#039;text&#039;] ) . &#039;&lt;\/p&gt;&#039;;\n\t\t}\n\t}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"widget-class\">Step 3. Load the widget only after Elementor is ready<\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/**\n * Load widget only after Elementor is ready\n *\/\nadd_action(\n\t&#039;plugins_loaded&#039;,\n\tfunction () {\n\n\t\tif ( ! did_action( &#039;elementor\/loaded&#039; ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tadd_action( &#039;elementor\/widgets\/register&#039;, __NAMESPACE__ . &#039;\\register_custom_widget&#039; );\n\t}\n);<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Final Output<\/h3>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"575\" height=\"290\" src=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/03\/elmentor-final-output-1.gif\" alt=\"elmentor-final-output-1\" class=\"wp-image-371574\" loading=\"lazy\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\"><strong>Full Code<\/strong><\/h3>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\n\/**\n * Plugin Name: Webkul Custom Elementor Widget\n * Plugin URI: https:\/\/www.webkul.com\n * Description: Create a custom Elementor widget using programming.\n * Author: Webkul\n * Author URI: https:\/\/www.webkul.com\n * Version: 1.0.0\n * Text Domain: webkul\n *\/\n\nnamespace Webkul\\Elementor;\n\nif ( ! defined( &#039;ABSPATH&#039; ) ) {\n\texit;\n}\n\n\n\/**\n * Load widget only after Elementor is ready\n *\/\nadd_action(\n\t&#039;plugins_loaded&#039;,\n\tfunction () {\n\n\t\tif ( ! did_action( &#039;elementor\/loaded&#039; ) ) {\n\t\t\treturn;\n\t\t}\n\n\t\tadd_action( &#039;elementor\/widgets\/register&#039;, __NAMESPACE__ . &#039;\\register_custom_widget&#039; );\n\t}\n);\n\n\/**\n * Register widget\n *\/\nfunction register_custom_widget( $widgets_manager ) {\n\n\t\/\/ class Webkul_Elementor_Widget.\n\tclass Webkul_Elementor_Widget extends \\Elementor\\Widget_Base {\n\n\t\t\/**\n\t\t * Returns the name of the widget.\n\t\t *\n\t\t * Used to generate the translation of the widget name.\n\t\t *\/\n\t\tpublic function get_name() {\n\t\t\treturn &#039;webkul_add_content&#039;;\n\t\t}\n\n\t\t\/**\n\t\t * * Return the title of the page.\n\t\t *\n\t\t * @return string\n\t\t *\/\n\t\tpublic function get_title() {\n\t\t\treturn esc_html__( &#039;Add Content&#039;, &#039;webkul&#039; );\n\t\t}\n\n\t\t\/**\n\t\t * @return string\n\t\t * @param void\n\t\t *\/\n\t\tpublic function get_icon() {\n\t\t\treturn &#039;eicon-code&#039;;\n\t\t}\n\n\t\t\/**\n\t\t * @return array\n\t\t * @param void\n\t\t *\/\n\t\tpublic function get_categories() {\n\t\t\treturn array( &#039;general&#039; );\n\t\t}\n\n\t\t\/**\n\t\t * Return the keywords of the widget.\n\t\t *\/\n\t\tpublic function get_keywords() {\n\t\t\treturn array( &#039;webkul&#039;, &#039;content&#039;, &#039;description&#039; );\n\t\t}\n\n\t\t\/**\n\t\t * Register widget controls.\n\t\t *\n\t\t * Adds different input fields to allow the user to change and customize the widget settings.\n\t\t *\/\n\t\tprotected function register_controls() {\n\n\t\t\t$this-&gt;start_controls_section(\n\t\t\t\t&#039;content_section&#039;,\n\t\t\t\tarray(\n\t\t\t\t\t&#039;label&#039; =&gt; esc_html__( &#039;Content&#039;, &#039;webkul&#039; ),\n\t\t\t\t\t&#039;tab&#039;   =&gt; \\Elementor\\Controls_Manager::TAB_CONTENT,\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t$this-&gt;add_control(\n\t\t\t\t&#039;text&#039;,\n\t\t\t\tarray(\n\t\t\t\t\t&#039;label&#039;   =&gt; esc_html__( &#039;Text&#039;, &#039;webkul&#039; ),\n\t\t\t\t\t&#039;type&#039;    =&gt; \\Elementor\\Controls_Manager::TEXT,\n\t\t\t\t\t&#039;default&#039; =&gt; esc_html__( &#039;Lorem Ipsum...&#039;, &#039;webkul&#039; ),\n\t\t\t\t)\n\t\t\t);\n\n\t\t\t$this-&gt;end_controls_section();\n\t\t}\n\n\t\t\/**\n\t\t * * Render the widget content.\n\t\t *\/\n\t\tpublic function render() {\n\t\t\t$settings = $this-&gt;get_settings_for_display();\n\t\t\techo &#039;&lt;p&gt;&#039; . esc_html( $settings&#091;&#039;text&#039;] ) . &#039;&lt;\/p&gt;&#039;;\n\t\t}\n\t}\n\n\t$widgets_manager-&gt;register( new Webkul_Elementor_Widget() );\n}<\/pre>\n\n\n\n<p>For more details, you can follow the document. See the blog, <a href=\"https:\/\/developers.elementor.com\/docs\/widgets\/\" target=\"_blank\" rel=\"noreferrer noopener\">click here<\/a><\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this guide, we explain how to build a custom widget for the Elementor page builder in WordPress. We will walk through the complete process step by step. As a result, you can extend Elementor with your own functionality. What You Will Learn First, you will learn how to use the Elementor API. Next, you <a href=\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":549,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-369555","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Custom elementor widgets with programming<\/title>\n<meta name=\"description\" content=\"Elementor makes it easy to build professional websites and pages without any coding knowledge, using a simple drag-and-drop interface.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Custom elementor widgets with programming\" \/>\n<meta property=\"og:description\" content=\"Elementor makes it easy to build professional websites and pages without any coding knowledge, using a simple drag-and-drop interface.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-13T10:06:10+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-01-28T10:35:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/02\/ezgif-4-624dbfaedd.gif\" \/>\n<meta name=\"author\" content=\"Peeyush Sengar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Peeyush Sengar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/\"},\"author\":{\"name\":\"Peeyush Sengar\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/d9eaff61864fc70ea94346816babc0ad\"},\"headline\":\"Custom elementor widgets with programming\",\"datePublished\":\"2023-03-13T10:06:10+00:00\",\"dateModified\":\"2026-01-28T10:35:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/\"},\"wordCount\":228,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/02\/ezgif-4-624dbfaedd.gif\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/\",\"url\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/\",\"name\":\"Custom elementor widgets with programming\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/02\/ezgif-4-624dbfaedd.gif\",\"datePublished\":\"2023-03-13T10:06:10+00:00\",\"dateModified\":\"2026-01-28T10:35:49+00:00\",\"description\":\"Elementor makes it easy to build professional websites and pages without any coding knowledge, using a simple drag-and-drop interface.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/02\/ezgif-4-624dbfaedd.gif\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/02\/ezgif-4-624dbfaedd.gif\",\"width\":819,\"height\":414,\"caption\":\"ezgif-4-624dbfaedd\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Custom elementor widgets with programming\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/d9eaff61864fc70ea94346816babc0ad\",\"name\":\"Peeyush Sengar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/95881083050c3d2fe6865d1fb71483345be98043635b4f00b80f64440e5bf94c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/95881083050c3d2fe6865d1fb71483345be98043635b4f00b80f64440e5bf94c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Peeyush Sengar\"},\"url\":\"https:\/\/webkul.com\/blog\/author\/peeyushsengar-laravel212\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Custom elementor widgets with programming","description":"Elementor makes it easy to build professional websites and pages without any coding knowledge, using a simple drag-and-drop interface.","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:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/","og_locale":"en_US","og_type":"article","og_title":"Custom elementor widgets with programming","og_description":"Elementor makes it easy to build professional websites and pages without any coding knowledge, using a simple drag-and-drop interface.","og_url":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-03-13T10:06:10+00:00","article_modified_time":"2026-01-28T10:35:49+00:00","og_image":[{"url":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/02\/ezgif-4-624dbfaedd.gif","type":"","width":"","height":""}],"author":"Peeyush Sengar","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Peeyush Sengar","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/"},"author":{"name":"Peeyush Sengar","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/d9eaff61864fc70ea94346816babc0ad"},"headline":"Custom elementor widgets with programming","datePublished":"2023-03-13T10:06:10+00:00","dateModified":"2026-01-28T10:35:49+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/"},"wordCount":228,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/02\/ezgif-4-624dbfaedd.gif","inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/","url":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/","name":"Custom elementor widgets with programming","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/#primaryimage"},"thumbnailUrl":"https:\/\/webkul.com\/blog\/wp-content\/uploads\/2023\/02\/ezgif-4-624dbfaedd.gif","datePublished":"2023-03-13T10:06:10+00:00","dateModified":"2026-01-28T10:35:49+00:00","description":"Elementor makes it easy to build professional websites and pages without any coding knowledge, using a simple drag-and-drop interface.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/02\/ezgif-4-624dbfaedd.gif","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/02\/ezgif-4-624dbfaedd.gif","width":819,"height":414,"caption":"ezgif-4-624dbfaedd"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/how-to-create-a-custom-elementor-widget-with-programming\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Custom elementor widgets with programming"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/d9eaff61864fc70ea94346816babc0ad","name":"Peeyush Sengar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/95881083050c3d2fe6865d1fb71483345be98043635b4f00b80f64440e5bf94c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/95881083050c3d2fe6865d1fb71483345be98043635b4f00b80f64440e5bf94c?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Peeyush Sengar"},"url":"https:\/\/webkul.com\/blog\/author\/peeyushsengar-laravel212\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/369555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/549"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=369555"}],"version-history":[{"count":28,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/369555\/revisions"}],"predecessor-version":[{"id":523927,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/369555\/revisions\/523927"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=369555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=369555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=369555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}