{"id":3599,"date":"2023-12-05T10:21:13","date_gmt":"2023-12-05T04:51:13","guid":{"rendered":"https:\/\/ahmedabad.wordcamp.org\/2023\/?post_type=wcb_session&#038;p=3599"},"modified":"2023-12-05T20:18:17","modified_gmt":"2023-12-05T14:48:17","slug":"crafting-custom-wp-cli-commands-unlocking-wordpress-flexibility","status":"publish","type":"wcb_session","link":"https:\/\/ahmedabad.wordcamp.org\/2023\/session\/crafting-custom-wp-cli-commands-unlocking-wordpress-flexibility\/","title":{"rendered":"Crafting Custom WP-CLI Commands: Unlocking WordPress Flexibility"},"content":{"rendered":"\n<p>In this session, we&#8217;ll delve into the world of WP-CLI, a powerful command-line tool for WordPress. We&#8217;ll start with an introduction to WP-CLI, breaking down its simple command structure, and explore its potential beyond the basics.<\/p>\n\n\n<p>The focus of this session is to empower you to craft your own WP-CLI commands, enabling you to tackle specific issues that aren&#8217;t addressed by core commands. We&#8217;ll explore practical scenarios where custom commands can come to the rescue, such as avoiding common 502 errors or extending plugin functionality with unique commands.<\/p>\n\n\n<p>We&#8217;ll shed light on the WP-CLI class, providing insights into how to harness its capabilities. The highlight of this session will be a live demonstration of writing your custom WP-CLI command. You&#8217;ll walk away with the knowledge and confidence to create commands tailored to your unique needs, empowering your WordPress development journey.<\/p>\n\n\n<div class=\"wp-block-wordcamp-session-speakers\"><span class=\"wp-block-wordcamp-session-speakers__byline\">Presented by<\/span><span class=\"wp-block-wordcamp-session-speakers__name\"><a href=\"https:\/\/ahmedabad.wordcamp.org\/2023\/speaker\/makarand-g-mane\/\">Makarand G. Mane<\/a><\/span><\/div>","protected":false},"excerpt":{"rendered":"<p>In this session, we&#8217;ll delve into the world of WP-CLI, a powerful command-line tool for WordPress. We&#8217;ll start with an introduction to WP-CLI, breaking down its simple command structure, and explore its potential beyond the basics. The focus of this session is to empower you to craft your own WP-CLI commands, enabling you to tackle [&hellip;]<\/p>\n","protected":false},"author":8209942,"featured_media":0,"template":"","meta":{"jetpack_post_was_ever_published":false,"_wcpt_session_time":1702112400,"_wcpt_session_duration":1800,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[3598],"footnotes":""},"session_track":[63],"session_category":[],"class_list":["post-3599","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-track-1"],"jetpack_sharing_enabled":true,"jetpack_likes_enabled":true,"session_date_time":{"date":"December 9, 2023","time":"2:30 pm"},"session_speakers":[{"id":"3598","slug":"makarand-g-mane","name":"Makarand G. Mane","link":"https:\/\/ahmedabad.wordcamp.org\/2023\/speaker\/makarand-g-mane\/"}],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/ahmedabad.wordcamp.org\/2023\/wp-json\/wp\/v2\/sessions\/3599","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ahmedabad.wordcamp.org\/2023\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/ahmedabad.wordcamp.org\/2023\/wp-json\/wp\/v2\/types\/wcb_session"}],"version-history":[{"count":1,"href":"https:\/\/ahmedabad.wordcamp.org\/2023\/wp-json\/wp\/v2\/sessions\/3599\/revisions"}],"predecessor-version":[{"id":5207,"href":"https:\/\/ahmedabad.wordcamp.org\/2023\/wp-json\/wp\/v2\/sessions\/3599\/revisions\/5207"}],"speakers":[{"embeddable":true,"href":"https:\/\/ahmedabad.wordcamp.org\/2023\/wp-json\/wp\/v2\/speakers\/3598"}],"author":[{"embeddable":true,"href":"https:\/\/ahmedabad.wordcamp.org\/2023\/wp-json\/wporg\/v1\/users\/mkrndmane"}],"wp:attachment":[{"href":"https:\/\/ahmedabad.wordcamp.org\/2023\/wp-json\/wp\/v2\/media?parent=3599"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/ahmedabad.wordcamp.org\/2023\/wp-json\/wp\/v2\/session_track?post=3599"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/ahmedabad.wordcamp.org\/2023\/wp-json\/wp\/v2\/session_category?post=3599"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}