Wordpress

Mini Program login process

Mini Programs can use the official WeChat login to conveniently acquire the user IDs provided by WeChat to quickly establish a user system in the Mini Program.

wx.login(OBJECT)
Call the interface wx.login() to acquire the temporary login certificate code
(developers.weixin.qq.com/miniprogram/en/dev/api/api-login.html)

Creating Custom Endpoints for the WordPress REST API

The WordPress REST API provides you with more than just a set of built-in routes. You can also create custom routes and endpoints using the same APIs used to create default routes (the register_rest_route() function and the WP_Rest_Controller class etc.). With this, you’ll have the possibility to integrate WordPress with other ecosystems, which makes WordPress a powerful and modern application development platform.

You can create or register custom endpoints either in plugins or themes.

Tags:

Functions File Explained

One way to change the default behaviors of WordPress is using a file named functions.php. It goes in your Theme's folder.

The functions file behaves like a WordPress Plugin, adding features and functionality to a WordPress site through PHP code. You can use it to call native PHP functions, WordPress functions, or to define your own functions.

Alternatively, you can place your custom PHP code into your own WordPress Plugin, or simply use a "functionality" plugin such as the Code Snippets plugin to manage your custom PHP snippets.

Tags:

Subscribe to RSS - Wordpress