{"id":699,"date":"2016-10-02T20:16:00","date_gmt":"2016-10-02T14:46:00","guid":{"rendered":"https:\/\/2016.nashik.wordcamp.org\/?post_type=wcb_session&#038;p=699"},"modified":"2023-11-21T14:53:50","modified_gmt":"2023-11-21T09:23:50","slug":"wordpress-apis-do-more-with-less-code","status":"publish","type":"wcb_session","link":"https:\/\/nashik.wordcamp.org\/2016\/session\/wordpress-apis-do-more-with-less-code\/","title":{"rendered":"WordPress APIs: Do more with less code"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/2016.nashik.wordcamp.org\/files\/2016\/10\/HLBanner.png\" alt=\"Harshal Limaye\" style=\"border: 1px solid #cac9c5;padding: 5px\" \/><\/p>\n<h2 style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/2016.nashik.wordcamp.org\/files\/2016\/10\/speaker.png\" alt=\"Regular Talk\" width=\"25px;\" \/>  Regular Talk<\/h2>\n<p>The goal of this session is to provide a gentle introduction to some of the most commonly used WordPress APIs that can be utilized by developers and site admins to make their life easy, How WordPress stores metadata inside the database, Adding, updating, retrieving and deleting the metadata information and finally he\u2019ll take a look at the core WordPress code that drives the metadata API and how one can use it to create own custom meta tables to take your WordPress projects to the next level.<\/p>\n<p>WordPress APIs: The APIs which Harshal be covering are as follows:<\/p>\n<p>1. Plugin API \u2013 Hooks, Actions and Filters:<br \/>\nWhen beginners needs to perform a specific task what they usually do is they copy and paste a specific code snippet which they got from stackoverflow or from a random blog and paste it inside their functions.php file. However, most of them are unaware of the way that code snippet works. In this section, I\u2019ll provide quick overview of What WordPress hooks are and How developers can utilize them to write more efficient code.<\/p>\n<p>2. Shortcode API:<br \/>\nShortcodes are one of the most simple and easy to use features in WordPress. In this section, I\u2019ll cover, How users can create their own custom shortcodes which can be useful to insert variety of content into their WordPress website.<\/p>\n<p>3. Dashboard Widget API:<br \/>\nThis is one of the most overlooked features of WordPress. This can be very helpful, for branding or display custom information to users when he logs into his WordPress Dashboard. In this section, I\u2019ll cover, how developers can utilize WordPress Dashboard widgets API to create custom WordPress dashboard widgets.<\/p>\n<p>4. Options API:<br \/>\nOne of the most popular API available in WordPress used to create, fetch, update, and delete options in a simple and standardized way. WP plugins, themes, and even WordPress itself, holds lot of data in form of options inside the database that matters to your WordPress website. Knowing how you can use or update these in a plugin or theme of very important. In this section, I\u2019ll provide a quick overview of this API, which can be helpful to beginners to get started with this API.<\/p>\n<p>5. Metadata API:<br \/>\nMetadata API is one of the primary reasons which make WordPress a powerful CMS. It allows the users to store custom fields inside WordPress database. This feature is widely used by plugins to store and update information.In this section, I will cover various ways of working with WordPress post meta data<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Regular Talk The goal of this session is to provide a gentle introduction to some of the most commonly used WordPress APIs that can be utilized by developers and site admins to make their life easy, How WordPress stores metadata inside the database, Adding, updating, retrieving and deleting the metadata information and finally he\u2019ll take [&hellip;]<\/p>\n","protected":false},"author":21084391,"featured_media":0,"template":"","meta":{"_crdt_document":"","jetpack_post_was_ever_published":false,"_wcpt_session_time":1476608400,"_wcpt_session_duration":3000,"_wcpt_session_type":"session","_wcpt_session_slides":"","_wcpt_session_video":"","_wcpt_speaker_id":[],"footnotes":""},"session_track":[648868],"session_category":[],"class_list":["post-699","wcb_session","type-wcb_session","status-publish","hentry","wcb_track-aakash-auditorium"],"jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p7owPz-bh","session_date_time":{"date":"October 16, 2016","time":"2:30 pm"},"session_speakers":[],"session_cats_rendered":null,"_links":{"self":[{"href":"https:\/\/nashik.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nashik.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions"}],"about":[{"href":"https:\/\/nashik.wordcamp.org\/2016\/wp-json\/wp\/v2\/types\/wcb_session"}],"author":[{"embeddable":true,"href":"https:\/\/nashik.wordcamp.org\/2016\/wp-json\/wp\/v2\/users\/21084391"}],"version-history":[{"count":4,"href":"https:\/\/nashik.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/699\/revisions"}],"predecessor-version":[{"id":2782,"href":"https:\/\/nashik.wordcamp.org\/2016\/wp-json\/wp\/v2\/sessions\/699\/revisions\/2782"}],"wp:attachment":[{"href":"https:\/\/nashik.wordcamp.org\/2016\/wp-json\/wp\/v2\/media?parent=699"}],"wp:term":[{"taxonomy":"wcb_track","embeddable":true,"href":"https:\/\/nashik.wordcamp.org\/2016\/wp-json\/wp\/v2\/session_track?post=699"},{"taxonomy":"wcb_session_category","embeddable":true,"href":"https:\/\/nashik.wordcamp.org\/2016\/wp-json\/wp\/v2\/session_category?post=699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}