 Hey, anyway, I'm I'm John. So I run a small visual digital media agency We do a lot of WordPress solutions. I'm not going to bore you with that. I'm going to move on. I Do a lot of work for WordPress. I maintain one of the core components and I'm the documentation team lead Yeah, basically if you use WordPress or RG then they are 14 different teams. I'm one of the team leads and So today, I'm going to talk a little bit about the changes to 4.7 and I'm going to focus a little bit on the rest API portion No code in my talk. Just why does it matter to you as a developer? And that's going to lead into a Jack's talk about the rest API in terms of code, right? Yeah, so Yeah, so one of the key things that you see there's actually a moving GF thing It's that the team specific CSS on your team customizer So in the past you would Insult plug-in to actually allow your clients or yourself to put in CSS code if you're not interested in actually altering the file So but the thing is the plug-in itself is going to be there for all your teams So if your client changes team, it works a little bit weird So ideally you should be able to change the CSS or even your client who copies a CSS code online and Paste it right in there because you're thinking hey, how do I change this thing in the 2016 on a 2017 default team And they can just place it in there and it will immediately show so ideally this is All these are things that you use to do separately in terms of using SFTP In terms of using FTP ID and so on or if you have to ask your client to actually Author the file using the file editor. You should not yeah, eventually all this is going to be inside the customizer so That's the team specific CSS One of the cool things that you might see in the future not 4.7 But in all of these things that we do to improve the parts of WordPress. There's always a future plan So the team specific CSS is actually going to have revisions in the future so for example Your client or maybe your new developer who doesn't know a lot about CSS can do some of the changes And then immediately revert to an earlier revision and then with the what a cut at this is the Inline viewing inspection tool. So like the browser's inspection tool, you could see which What a cut at CSS Sorry, which HTML tag you're targeting I think one of this is not a necessary developer base, but I think super cool to have PDF thumbnails in the MediaDark library So equally if you have been doing this WordPress work for a long time. We have seen five six hundred PDFs done there And then when you want to search the final things in the past You can actually search for file names of WordPress files in the media library if you actually change the Name of the what a cut at Tashman inside the attachment name itself So if you changed it without the thumbnail, you're never going to find PDF. They're looking for so now there are thumbnails There's also user-based or cal so if you actually have a multi language website And the front end is easy to see what language you want to change to But if you have say a big remote working team and actually some of your authors or administrators are actually from a different Country, they might be more comfortable with using their own language So this allows that you can change to the Spanish or any other language that WordPress is already hundred percent lead translated on and The back end will actually translate to the language So the things because this is safe in the user meta portion So if you want to use this local what a cut at user-based language setting in your front end as well, it's quite possible Select a post selectable post type template so post type templates has always been possible By actually naming a post type file with us with appropriate post type name But now you will be able to select that for example, you create a customer post type called books But you want to have five different ways of how different books will display you could use the post type template drop down Yeah, so this only used to be able to be done for on pages that you have coded the templates in But now it works for post types as well And all you need to do is add an additional template post type line and you can create a say unifying template for post page products books movies and so on or you could create one Pitched sorry post type template for one post type Next is video haters So I think we're a little bit late into the game But now you could with 4.7 upload a video hater and but this will require a theme that actually supports it But all you need to do is to actually just add team support and then you enable this function Of course you as a developer you have to add a code that actually displays the video Which is basically I can't remember the exact line But at least this control is easily be easily added by one single line Now of course with every Not every every year we have a new default team. So 2017 is a new default team Few cool things is doing one is it allows for content partners. So if you have Have you any one of you actually submitted a team to WordPress.org before? No, okay, so traditionally we do not allow demo content or default content to be displayed Yeah, because we want the team to work directly for the person's content so now with the advent of What a good at team pen content panels is that you can actually I'm going to play the video Yeah, you can actually put in all this content panel by matching them to a specific page So if you want to match a about ask page to a certain content panel in your home page, you're allowed to do so Yeah, it's going to go through the whole logo selection thing for a while It's gonna Move this ahead Yeah, so you could define as many patterns as you want And then select a page that you want to locate the content to and you actually do that for you so actually 2017 is designed for Businesses, so if you run a business and you want to use a clean team that allows you to map content onto the home page And so on this will allow you to but finally because 2017 was actually developed before the video haters to put in So 2017 doesn't support video haters out of the box. So of course as developers you can put that in Okay, so That's that also it by default is the first default team that actually uses SVG icons So if you are tired of using a non-skillable vector graphics, this is the team that you could learn a little bit from what they do with SVG icons Okay I'm going to skip the rest API endpoint. Sorry. So with 4.7, right? It's not so much with 4.7 We've been actually merging the rest API from version 4.4 until now 4.7, which is going to be released in December 6 So the key point about that is it's not been very usable. Yeah, so Because there was no content endpoints. So right now with 4.7 the content endpoints are being added in and I'm going to skip the definition because Jack is going to do those later. Yeah So the rest API is fully integrated over three versions finally in 4.7 into Into the core and the key thing about this is that with all your say What I call that cloud programs on sorry cloud systems online and so on they more or less use a rest API So we were pressed using a rest API in your other systems Whether it's a HRM system accounting system e-commerce and so on you would be able to communicate with these systems using the rest API So why does it say so important because it's a universal connector? It uses Json, which I guess Jack will explain later and you can communicate and the thing is you might have Legacy system analysis like legacy you might have a system written Java You have another system we return Ruby on rails and so on as long as they all use the rest API Or at least they return Json one way or another what press will be able to communicate with them So what can you do with the rest API? I think one of the things I like to say is you can power multiple front-ends So what does this mean? so You can power IoT devices and draw apps iOS apps Boards you can power smartwatches Desktop apps and of course web apps So all these using WordPress as the content management system as the application framework And then you power different kind of looks on different kind of interfaces So the past it used to be if you wanted the phone app There will be a specific content management system for the phone app and other content management system from the Android app Another content management system for the web application. So in terms of how a company will function. That's actually quite bad You can use it as a data exchange So WordPress with the recipe API So I like to tell this story right so imagine you are running a company and Say you have the logistics stuff now the logistics stuff When to buy a project related materials, so now she says Okay, I've got to claim the money that I spent $500. I go to the HIM system and I submit my claims. So This data is not in a HIM system, but now As the boss or as the accountant, I would like the data to also go to the accounting system So traditionally this would be someone copying the data over to the accounting system But ideally it should be in such a way that the rest API handles this checks periodically This different systems and sends the data to the accounting system. So now as the accountant, I know I've got to pay my staff $500 Next so in the end now that my items are bought and the staff are paid for I need to record that in the project management system So ideally the rest API would be able to do that as well So WordPress with the rest API is the data aggregator It does the exchange your hand does and if you do any if you do any level of data transformation It's all available there I'd like to show you a real-life example called Nomad base so Have anyone seen what this is? Know what Nomad base is it's actually What a mapping system for digital nomads or people like a few of us would go around the world to give talks and so on So if I lend for example, I'm going to the States in a few weeks If I lend that and then in a far away place, I would like to see whether my friends are here So automatically what this thing is does is it connects some of all my social media stuff Guess the data and checks who's there so that we can say hello send the email to them and so on and catch up So the good thing about the interesting thing about this is this is actually entirely Sorry, the back ends entirely built with WordPress. So in the front end, you cannot see that it is actually WordPress The front end is powered by leaflet. I think yeah a leaflet mapping system And the back end uses the rest API and parts of it uses react as well So this is actually my map on where I'll be traveling to So the good thing about the rest API is that you can connect with different Emerging JS technologies and other language technologies and just work with them because in the past when you actually create a WordPress website and you're thinking about creating a mapping site and so on you think oh now I've got to create a team and I've got a quarter header and everything which are essentially useless when you're trying to do a system like Nomad or if you want to do a system like a data analytics system So but by using the rest API, I can get the data that I need and then just power whatever front end that I want So how the Nomad base actually works is that the WordPress is the data aggregator It takes all the data from the different social media apps swam Twitter Facebook tripped And then basically sends it to leaflet as mapping points. Yeah So what does the rest API mean for the developer and I assume that most of you guys here are developers So JavaScript is going to be increasingly important actually it is really really important right now Maybe in the future it's going to be more or if not as important as PHP Web development will become more modularized What I'm saying this is that if you are going to build a web app It's no longer just going to be about WordPress powering the entire thing You might use react you might use other GS components power the front end you might connect to other cloud systems and so on It's never going to be like let me build you a full enterprise system that does all the ERP The counting the point of sales and so on you could be just building a core data aggregator that connects to all these systems Content great integration will be key and become much easier. So increasingly I have seen my clients not want to actually build a big system They just want to continue using the current system. They have and make it easier for others to connect Business intelligence suddenly seems much more related with the WordPress So I spent a lot of time trying to replace the word big data. So which I replaced with business intelligence But basically data aggregation will be very very important And we can then finally deprecate XML RPC finally not that soon, but eventually So if you are if you are not understanding why this is important actually XML RPC Well as a protocol is the most attacked vector in WordPress Actually, it doesn't really do let anything go through but it's the most attacked vector So hosts that don't really understand this sometimes you block it by default Which then doesn't allow the typical WordPress user to use a iOS app and so on to connect Which I think that's going to be replaced by the rest API, right? Or it's really replaced Yeah, so if you are the business owner, so what about this my business? How does the rest API affect me? This is in perspective of a development agency just So we started WordPress as a blogging platform And then it became a content management system So right now the content management system has 70% of the content management market. Yeah, and The thing is in total we power 26% of all websites in the world That's about 450 million I may have I may have gotten that number wrong, but that's not important It is a huge number to power 25% of the Internet Sorry 26% so what is the next step as a development agency because the truth is in terms of content management system We already own the market if you tell people hey I do what press you can use it as a content management system. They have heard it all So the next step is what press must be used as application framework Yeah, so increasingly as I was busy and your clients are not likely going to look for a new website They're going to say we need this new system So how can we do it use WordPress and then how can you convince them tell them? WordPress as the rest API and can be used as application framework So if I'm trusted to see how to use the rest API, this is actually not released yet So you guys get a full early look developer the wordpress.org slash rest API This is the rest API handbook So you can take a look about endpoints and how to connect and so on and then Jack is going to follow up later On on how actually the rest API works So that's all for me You can look for me on Twitter slag WordPress GitHub at at Kenshi no K and SSI and oh and that's all from me Thank you I Have nomad base and I know the creators. Yeah, so that's why I got it Oh, by the way just in case if you're interested in nomad base because it's the invite only I'm gonna skip back Yeah, there's actually invitation code right here. So if you want to use it quickly take it I only get two per month So if you want one next month, let me know and I'll give you the invitation a code invitation code Yes as well yeah So you see like the example how nomad base works is Jack came from the UK, right? Sorry, okay from Greece. So he landed here because we are friends on Facebook. So Technically nomad base is so close to tell me his here and connect with him. Yeah If you have it does it should it should email you Yeah, if it doesn't then you could tell no, I was something's broken But you can actually build for example slag integrations into it to remind you to yeah, okay. Yes any more questions Yeah, so anyway, the the person who built at least the product and product owner of What I could add nomad base was here to answer his question just this month Okay, if today there's no further questions, I'm going to invite Jack who's from automatic from wordpress.com VIP Yeah to give talk about actual development with REST API