• Home
  • Services and Offers
    • Website and Plugin Development for WordPress
    • Working with API in WordPress
    • Development of websites and applications on the Yii2 framework
  • Portfolio
    • Developed Websites
    • Developed WordPress Plugins
    • Plugin Multilang Perelink
    • Plugin My Maps
    • Plugin My Text Shortcodes
    • Plugin Redirects for Htaccess
    • Plugin Portfolio Light
    • Plugin Light Code Block
    • Other Developments
  • Blog
  • Reviews
  • Feedback form
WordPress +plugins ● Laravel ● Symfony ● Yii2 ● AlpineJS development

Order website or plugin development for WordPress, website development on the Laravel, Symfony, or Yii2 framework…

How to save data to the database in WordPress via REST API using your Endpoint and API KEY
How to save data to the database in WordPress via REST API using your Endpoint and API KEY

We continue exploring the topic of custom endpoints with API key access. Today we'll look at an example of saving data to the database and validating the key before saving.

read more...

2020-12-26 Pavel WordPress CommentsNo Comments on How to save data to the database in WordPress via REST API using your Endpoint and API KEY
How to Get Custom Posttype Data in WordPress by API KEY via REST API
How to Get Custom Posttype Data in WordPress by API KEY via REST API

I decided to slightly complicate our previous code by adding a simple API KEY access check. The example below demonstrates the most basic implementation of access control via a key. In real applications, it is recommended to use something more advanced, like access validation via a Bearer token.

read more...

2020-12-19 Pavel WordPress CommentsNo Comments on How to Get Custom Posttype Data in WordPress by API KEY via REST API
How to disable single page for custom post type
How to disable single page for custom post type

One of the WordPress hooks where we can perform a redirect is template_redirect. In it, we’ll place our check and perform a redirect to the homepage.

read more...

2020-12-12 Pavel WordPress CommentsNo Comments on How to disable single page for custom post type
How to install Fancybox in Bower
How to install Fancybox in Bower

To install the jQuery gallery (popup window) script Fancybox, run the following command in the console:

bower i fancybox

But before installing the library, make sure that Node.js and npm are installed on your system. You can read how to do this in this article.

2020-12-09 Pavel jQuery CommentsNo Comments on How to install Fancybox in Bower
How to Add Your Own REST API Endpoint to WordPress
How to Add Your Own REST API Endpoint to WordPress

As mentioned in previous articles, WP has a rich set of built-in features for working with its API.
Today, we’ll look at how to create a custom endpoint to read data.
To implement a basic API in WordPress, we’ll need the action hook rest_api_init and the function register_rest_route.

read more...

2020-12-03 Pavel WordPress CommentsNo Comments on How to Add Your Own REST API Endpoint to WordPress
« Previous 1 2 3 4 … 22 Next »
Recent Posts
  • How to Hide Everything in the Footer from Indexing in WordPress
  • How to Disable Comments Programmatically in WordPress
  • How to Attach an Existing Taxonomy to a New Post Type in WordPress
  • How to delete data from the database in WordPress via REST API using your Endpoint and API KEY
  • How to update data in WordPress via REST API using your Endpoint and API KEY
Categories
  • Bootstrap
  • JavaScript
  • jQuery
  • Linux
  • MySQL
  • Notes
  • PHP
  • Web
  • WordPress
  • Yii2
Tags
Ajax API API-KEY Array Autocomplete Bootstrap Bower Category Comments CSS Date Datetime DB Endpoint footer function geo GridView Gulp HTML IP JavaScript jQuery jQuery UI Lessons MailChimp PHP Plugins post_type redirect REST SCSS SEO Shortcode Table Taxonomy Term Theme Timestamp TimeZone TinyMCE Twit Validation WYSIWYG Yoast

Layout, development of websites and plugins for WordPress on request. Web programming on popular PHP frameworks Symfony, Laravel, Yii2, VUE, AlpineJS.
Any use of site materials without the permission of the author and a direct indexed link to this resource is prohibited plance.top © 2015 - 2024
site map

We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.