June 11, 2018 — Out of the box, WordPress provides a handful of user roles, from Subscriber to Administrator, each with an increasing level of access to manage content and settings on the site. While these roles provide a great starting point for many WordPress sites, they don’t offer the granularity one expects in a large organization with complex editorial workflows. Fortunately, these roles just begin to tap into the power of WordPress’s underlying capabilities API, which provides fine-grained access control for every aspect of the site’s administration, from controlling who can access a settings screen to which users can edit or publish a particular post.
This presentation focuses on the technical aspects of role and capability management in WordPress. How do you create and edit user roles? How do you dynamically filter capabilities? What the heck is a “meta capability”? How can you have more control than the various role editing plugins provide? We’ll take a journey through the code to learn the most effective and efficient ways to manage your users’ editorial and administrative experiences, using some examples from solutions Modern Tribe has implemented at Stanford Law School and Harvard Law School.
May 16, 2018 — ¿Cómo creamos un sitio web estático alimentado por la WordPress API?
Por qué creemos que es una buena idea y por qué será la forma como WordPress se abrirá espacio entre el mundo de opciones que están surgiendo como su competencia.
Los pasos, desafíos y tips para crear un sitio web utilizando React y WordPress.
Browsers have become much more powerful and contain numerous APIs that can enrich the user experience or are just plain fun.
April 12, 2018 — จะพาไปรู้จักกับ Transients API ว่าคืออะไร ใช้ยังไง ดียังไง ไม่ใช้แล้วเป็นยังไง
February 26, 2018 — In this talk we’re specifically going to look at how a combination of REST principles and modeling our processes and dialogs as state machines can dramatically simplify our client applications and API exchanges.
Why would you want to hear more about this subject? As we all start working more in the browser and communicate back to WordPress via API calls it’s easy for the complexity to start stacking up and overwhelming us! In fact, API design isn’t necessarily intuitive and the web is full of noisy advice.
We’ll use an example Gutenberg plugin to walk through a very common scenario dealing with interactive processes and we’ll see how a few design principles can save us the headaches of race conditions, code bloat, and changing requirements. We’ll examine how “state machines” can guide us and simplify complex business logic and we’ll explore how “HATEOAS” and REST pair with these machines to simplify complex application and UI logic.
Whether you are just starting to write your own APIs and API clients or you have been churning them out for years I invite you to join this design session; we’ll stay away from nitty-gritty code details and instead focus on general principles we can apply in any coding environment.
It’s my hope that after participating in this session you will be able to confidently work with: indicating loading states; testing and debugging forms, processes, and uploads; untangle complicated business rules dealing with things like authentication, limiting, validation, and triggering related activity; and end up with well documented means of doing so.
February 26, 2018 — In this talk, we will look at what WordPress looks like as an Application Data Graph and how WPGraphQL enables a GraphQL API for WordPress and allows us to interact with the WordPress graph via GraphQL queries and mutations.
In previous talks, (WordCamp US 2017, WordCamp for Publishers 2017, WordCamp Orange County 2017) I’ve talked a lot about the history of WordPress APIs and how GraphQL compares to them and helps solve some problems of using other APIs.
This talk will focus less on the history of why WPGraphQL came to be and how it compares with other existing WP APIs, and focus more on how to use WPGraphQL, how to extend WPGraphQL to work for your site.
We’ll start by looking at basic usage of WPGraphQL: querying posts, pages, terms, etc. Then we’ll explore some features of the query language such as variables, aliases, and field arguments.
Then we’ll look at Mutations (creating, updating and deleting data) and we’ll discuss how WPGraphQL handles Authentication and Authorization, and other features like fragments.
Throughout the talk we’ll look at the internals of WPGraphQL and how it goes from a request to the WordPress server to resolving data back to the client, and how it makes use of core WordPress technology to efficiently resolve data.
January 29, 2018 — Three days before the deadline and the launch of a national TV campaign – Sean’s boss turned to him and said: “I don’t think we can do this.”
Just six weeks earlier the team at Pragmatic had landed a huge API project. ITV, The National Lottery & The British Olympic Association had come together to plan and deliver Britain’s biggest ever sports day: I am Team GB. As their chosen WordPress partners, they had to get it right.
So how did it go? What did they learn along the way? And what would they do differently if they did it again? Sean will guide the audience through the different pieces of the puzzle – things they predicted, (and the things they didn’t). We will explore:
– The inner workings of an enterprise level API project
– The pressures and challenges of a tight, immovable deadline (the Olympics!)
– The creativity needed to face new challenges
– And most of all, the successes and learnings we can see looking back on it now.
The project helped a million people get off the sofa and get involved in sport that day – and we’ll look at how, with millions of people hitting the site, WordPress didn’t break a sweat.
October 17, 2017 — I am cultivating a number of classes which use the Customizer API beyond the typical theme settings. I’ve also begun to build custom controls to allow for further customization of the Customizer. In this talk, I’d like to walk thru how to use the API, demonstrate the existing tools available and then show how to expand on them to better suit your specific needs.
October 10, 2017 — There’s a simple yet powerful API within WordPress to help developers cache all sorts of data, and in turn speed up load times. Transients are often misunderstood by developers and their powerful abilities can sometimes be misused.
In this session Ryan Kanner will uncover the inner workings of the Transient API, and learn how to properly leverage it’s abilities.