{"id":2243,"date":"2023-10-01T04:21:51","date_gmt":"2023-10-01T04:21:51","guid":{"rendered":"https:\/\/easycodingschool.com\/?p=2243"},"modified":"2023-10-01T04:23:03","modified_gmt":"2023-10-01T04:23:03","slug":"override-private-methods-of-third-party-modules-in-magento-2","status":"publish","type":"post","link":"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/","title":{"rendered":"Override Private Methods of Third-Party Modules in Magento 2"},"content":{"rendered":"<p>In Magento 2, which is a popular e-commerce platform based on PHP, overriding a private method in a third-party module class is not straightforward, and it&#8217;s generally discouraged. Private methods are intentionally made inaccessible from outside the class to ensure encapsulation and maintainability. Magento follows object-oriented programming principles, and the recommended way to customize or extend the functionality of a third-party module is through class inheritance and plugins.<\/p>\n<p>Here&#8217;s a preferred approach to increase or customize the functionality of a third-birthday party module in Magento 2:<\/p>\n<h3>Create a Custom Module:<\/h3>\n<ul>\n<li>If you haven&#8217;t already, begin by developing your unique module. You can organise your module using the app\/code directory.<\/li>\n<\/ul>\n<h3>Use Class Inheritance:<\/h3>\n<ul>\n<li>If the third-party module allows for class extension (the class and its methods are not defined as final), you can construct a new class that extends the third-party class.<\/li>\n<li>To offer the needed functionality, override the public or protected methods in your custom class.<\/li>\n<li>Register your custom class in the XML settings of your module.<\/li>\n<\/ul>\n<p>Assume in this example that you can extend the third-party payment method class, ThirdPartyPaymentMethod.<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>\/\/ app\/code\/YourVendor\/CustomPayment\/Model\/Payment\/CustomPaymentMethod.php\r\nnamespace YourVendor\\CustomPayment\\Model\\Payment;\r\n\r\nclass CustomPaymentMethod extends \\ThirdParty\\Payment\\Method\r\n{\r\n    \/\/ Override methods as needed\r\n    public function capture(\\Magento\\Payment\\Model\\InfoInterface $payment, $amount)\r\n    {\r\n        \/\/ Customize the capture logic here\r\n    }\r\n}<\/code><\/pre>\n<\/div>\n<h3>Use Plugins:<\/h3>\n<ul>\n<li>Consider employing plugins (interceptors) to modify the behavior of public methods, including those from third-party modules, if class inheritance is not allowed or advised.<\/li>\n<li>Plugins allow you to change the behavior of a method <strong>before<\/strong> or <strong>after<\/strong> it is executed. Plugins can be used to customize the functionality without changing the core class.<\/li>\n<li>To construct a plugin, specify it in the XML configuration of your module and implement a plugin class with <strong>before<\/strong>, <strong>after<\/strong>, and <strong>around<\/strong> methods as needed.<\/li>\n<\/ul>\n<p>Here&#8217;s a high-level example of writing a plugin to change the behavior of a third-party module&#8217;s public methods:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>&lt;!-- app\/code\/YourVendor\/YourModule\/etc\/di.xml --&gt;\r\n&lt;config xmlns:xsi=\"http:\/\/www.w3.org\/2001\/XMLSchema-instance\" xsi:noNamespaceSchemaLocation=\"urn:magento:framework:ObjectManager\/etc\/config.xsd\"&gt;\r\n&lt;type name=\"ThirdParty\\Class\\Name\"&gt;\r\n&lt;plugin name=\"your_plugin_name\" type=\"YourVendor\\YourModule\\Plugin\\YourPluginClass\" sortOrder=\"10\" \/&gt;\r\n&lt;\/type&gt;\r\n&lt;\/config&gt;\r\n<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-php\" data-lang=\"PHP\"><code>\/\/ app\/code\/YourVendor\/YourModule\/Plugin\/YourPluginClass.php\r\nnamespace YourVendor\\YourModule\\Plugin;\r\n\r\nclass YourPluginClass\r\n{\r\n    public function beforeMethodName(\\ThirdParty\\Class\\Name $subject)\r\n    {\r\n        \/\/ Modify behavior before the original method is executed\r\n        return null; \/\/ You can also return a modified result if necessary\r\n    }\r\n}\r\n<\/code><\/pre>\n<\/div>\n<p>Please keep in mind that this is a simplified example for demonstration purposes only. In practice, you would need to check the documentation and investigate the individual methods and classes of the third-party payment mechanism you are modifying. Magento module structure and customization approaches may differ depending on the architecture and version of the module.<\/p>\n<p>For accurate and up-to-date information on configuring third-party modules in your individual Magento setup, always consult to the official Magento 2 documentation and best practices.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Learn the way to manipulate of your Magento 2 to override Third-Party private modules.<\/p>\n","protected":false},"author":1,"featured_media":2246,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"categories":[4,208],"tags":[127,108,126,64,211,212],"class_list":["post-2243","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-lifestyle","category-magento-2","tag-easy-coding","tag-easy-coding-school","tag-easycoding","tag-easycodingschool","tag-magento-2","tag-technique"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.1.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Override Private Methods of Third-Party Modules in Magento 2 - Easy Coding School<\/title>\n<meta name=\"description\" content=\"Learn the way to manipulate of your Magento 2 to override Third-Party private modules\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Override Private Methods of Third-Party Modules in Magento 2 - Easy Coding School\" \/>\n<meta property=\"og:description\" content=\"Learn the way to manipulate of your Magento 2 to override Third-Party private modules\" \/>\n<meta property=\"og:url\" content=\"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Easy Coding School\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-01T04:21:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-10-01T04:23:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/10\/Override-Private-Methods-of-Third-Party-Modules-in-Magento-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"660\" \/>\n\t<meta property=\"og:image:height\" content=\"350\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"gauravkumarjha19@gmail.com\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"gauravkumarjha19@gmail.com\" \/>\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:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/\"},\"author\":{\"name\":\"gauravkumarjha19@gmail.com\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/9cabe8e90728da7f26676cbd1744558b\"},\"headline\":\"Override Private Methods of Third-Party Modules in Magento 2\",\"datePublished\":\"2023-10-01T04:21:51+00:00\",\"dateModified\":\"2023-10-01T04:23:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/\"},\"wordCount\":371,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/10\/Override-Private-Methods-of-Third-Party-Modules-in-Magento-2.png\",\"keywords\":[\"Easy Coding\",\"Easy Coding School\",\"EasyCoding\",\"EasyCodingSchool\",\"Magento 2\",\"Technique\"],\"articleSection\":[\"Lifestyle\",\"Magento 2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/\",\"url\":\"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/\",\"name\":\"Override Private Methods of Third-Party Modules in Magento 2 - Easy Coding School\",\"isPartOf\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/10\/Override-Private-Methods-of-Third-Party-Modules-in-Magento-2.png\",\"datePublished\":\"2023-10-01T04:21:51+00:00\",\"dateModified\":\"2023-10-01T04:23:03+00:00\",\"description\":\"Learn the way to manipulate of your Magento 2 to override Third-Party private modules\",\"breadcrumb\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/#primaryimage\",\"url\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/10\/Override-Private-Methods-of-Third-Party-Modules-in-Magento-2.png\",\"contentUrl\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/10\/Override-Private-Methods-of-Third-Party-Modules-in-Magento-2.png\",\"width\":660,\"height\":350,\"caption\":\"Override Private Methods of Third-Party Modules in Magento 2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/easycodingschool.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Override Private Methods of Third-Party Modules in Magento 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#website\",\"url\":\"https:\/\/easycodingschool.com\/blog\/\",\"name\":\"Easy Coding School\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/easycodingschool.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#organization\",\"name\":\"Easy Coding School\",\"url\":\"https:\/\/easycodingschool.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/07\/New-Project-10.png\",\"contentUrl\":\"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/07\/New-Project-10.png\",\"width\":310,\"height\":114,\"caption\":\"Easy Coding School \"},\"image\":{\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/9cabe8e90728da7f26676cbd1744558b\",\"name\":\"gauravkumarjha19@gmail.com\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/6846a3cc9bd6cb5b779aef260fe379c4b93fa20e1a4c753eb023ff7c08d7c668?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/6846a3cc9bd6cb5b779aef260fe379c4b93fa20e1a4c753eb023ff7c08d7c668?s=96&d=mm&r=g\",\"caption\":\"gauravkumarjha19@gmail.com\"},\"sameAs\":[\"https:\/\/easycodingschool.com\/blog\"],\"url\":\"https:\/\/easycodingschool.com\/blog\/author\/gauravkumarjha19gmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Override Private Methods of Third-Party Modules in Magento 2 - Easy Coding School","description":"Learn the way to manipulate of your Magento 2 to override Third-Party private modules","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:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"Override Private Methods of Third-Party Modules in Magento 2 - Easy Coding School","og_description":"Learn the way to manipulate of your Magento 2 to override Third-Party private modules","og_url":"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/","og_site_name":"Easy Coding School","article_published_time":"2023-10-01T04:21:51+00:00","article_modified_time":"2023-10-01T04:23:03+00:00","og_image":[{"width":660,"height":350,"url":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/10\/Override-Private-Methods-of-Third-Party-Modules-in-Magento-2.png","type":"image\/png"}],"author":"gauravkumarjha19@gmail.com","twitter_card":"summary_large_image","twitter_misc":{"Written by":"gauravkumarjha19@gmail.com","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/#article","isPartOf":{"@id":"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/"},"author":{"name":"gauravkumarjha19@gmail.com","@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/9cabe8e90728da7f26676cbd1744558b"},"headline":"Override Private Methods of Third-Party Modules in Magento 2","datePublished":"2023-10-01T04:21:51+00:00","dateModified":"2023-10-01T04:23:03+00:00","mainEntityOfPage":{"@id":"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/"},"wordCount":371,"commentCount":0,"publisher":{"@id":"https:\/\/easycodingschool.com\/blog\/#organization"},"image":{"@id":"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/10\/Override-Private-Methods-of-Third-Party-Modules-in-Magento-2.png","keywords":["Easy Coding","Easy Coding School","EasyCoding","EasyCodingSchool","Magento 2","Technique"],"articleSection":["Lifestyle","Magento 2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/","url":"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/","name":"Override Private Methods of Third-Party Modules in Magento 2 - Easy Coding School","isPartOf":{"@id":"https:\/\/easycodingschool.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/10\/Override-Private-Methods-of-Third-Party-Modules-in-Magento-2.png","datePublished":"2023-10-01T04:21:51+00:00","dateModified":"2023-10-01T04:23:03+00:00","description":"Learn the way to manipulate of your Magento 2 to override Third-Party private modules","breadcrumb":{"@id":"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/#primaryimage","url":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/10\/Override-Private-Methods-of-Third-Party-Modules-in-Magento-2.png","contentUrl":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/10\/Override-Private-Methods-of-Third-Party-Modules-in-Magento-2.png","width":660,"height":350,"caption":"Override Private Methods of Third-Party Modules in Magento 2"},{"@type":"BreadcrumbList","@id":"https:\/\/easycodingschool.com\/blog\/override-private-methods-of-third-party-modules-in-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/easycodingschool.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Override Private Methods of Third-Party Modules in Magento 2"}]},{"@type":"WebSite","@id":"https:\/\/easycodingschool.com\/blog\/#website","url":"https:\/\/easycodingschool.com\/blog\/","name":"Easy Coding School","description":"","publisher":{"@id":"https:\/\/easycodingschool.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/easycodingschool.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/easycodingschool.com\/blog\/#organization","name":"Easy Coding School","url":"https:\/\/easycodingschool.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/07\/New-Project-10.png","contentUrl":"https:\/\/easycodingschool.com\/blog\/wp-content\/uploads\/2023\/07\/New-Project-10.png","width":310,"height":114,"caption":"Easy Coding School "},"image":{"@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/9cabe8e90728da7f26676cbd1744558b","name":"gauravkumarjha19@gmail.com","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/easycodingschool.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/6846a3cc9bd6cb5b779aef260fe379c4b93fa20e1a4c753eb023ff7c08d7c668?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6846a3cc9bd6cb5b779aef260fe379c4b93fa20e1a4c753eb023ff7c08d7c668?s=96&d=mm&r=g","caption":"gauravkumarjha19@gmail.com"},"sameAs":["https:\/\/easycodingschool.com\/blog"],"url":"https:\/\/easycodingschool.com\/blog\/author\/gauravkumarjha19gmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/posts\/2243","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/comments?post=2243"}],"version-history":[{"count":4,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/posts\/2243\/revisions"}],"predecessor-version":[{"id":2248,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/posts\/2243\/revisions\/2248"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/media\/2246"}],"wp:attachment":[{"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/media?parent=2243"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/categories?post=2243"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/easycodingschool.com\/blog\/wp-json\/wp\/v2\/tags?post=2243"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}