Shineyrock web design & consultancy

Shineyrock

Searched for: "test" / 634 results

WP REST API: Creating, Updating, and Deleting Data

…test request from Postman or any other HTTP client. To do this, fire up your HTTP client and send a POST request to the /posts route. But before that, remember that resource creation, deletion, and update require authentication as a user with edit_posts rights. So we will use the basic…


How to Work With WordPress Term Meta: Term Metadata API

…tests.The Full Source CodeHere, you're going to find all of the code that we've used throughout this post along with additional comments explaining what's happening in the code. Remember that all of these functions are hooked into the_content, which means that the functions will fire each time the post is…


PayPal Integration Part 2: PayPal REST API

…testing purposes, we can then navigate to http://sandbox.paypal.com and log in with the sandbox login details to see the test PayPal account and transactions.After clicking on Create App, we see the confirmation screen with the Client ID and Secret tokens.Copy the clientId and clientSecret tokens to appsettings.json, as you can…


PayPal Integration Part 3: PayPal Webhooks

…test' webhook events to your URL to test that your code is working. Also, under 'Webhooks Events' you can see all the events that PayPal sent for this application. You can verify that you're handling the events correctly and re-send them if you want to do further testing.To see how…


The New Modification System in OpenCart 2

…test version of OpenCart.How OCMOD WorksYou could create and install an OCMOD extension in two different ways. Either you need to build a zip file with the ".ocmod.zip" extension, or the other way is to create just a single XML file having the ".ocmod.xml" extension.The Zip File OptionThe option of…


Kick-Start WordPress Development With Twig: Introduction

…test coding standards. The output escaping concept is very comprehensive when handled with Twig. Let's start with a simple example.In regular PHP you get an output like this:<?php echo $foo; // $foo is any random variable ?> <?php echo htmlspecialchars( $foo, ENT_QUOTES, 'UTF-8' ) ?>In Twig, things get much more…


Understand Caching in OpenCart

…test version of OpenCart, so make sure that you’ve installed that to follow the code.How Basic Caching Works in OpenCartThe caching library is provided in the core itself, so let’s straight away explore it. Go ahead and open the system/library/cache.php file in your favorite text editor.<?php class Cache { private…


WP REST API: Internals and Customization

…testing purpose to modify the response of the REST API plugin. * Author: Bilal Shahid * Author URI: http://imbilal.com */The register_rest_field() method should be registered in the rest_api_init action. Hence, we create a function named bs_add_custom_rest_fields() and bind it to the rest_api_init hook:<?php add_action( 'rest_api_init', 'bs_add_custom_rest_fields' ); function bs_add_custom_rest_fields() {…


Set Up a Multilingual Site in OpenCart

…test major version of OpenCart, so make sure that you've installed it!Download the Language PackOf course, it's one of the first things you'll need to do—download the desired language pack from the OpenCart marketplace site.Go to the OpenCart Marketplace and search for the desired language pack. You could choose either…


Grow Your Subscribers With the Mailgun WordPress Plugin

…testing. Paid subscriptions are available for increased capacity.The latest version of this plugin adds support for Mailgun list subscription. Using the shortcode, you can place a form on an article or page to allow the visitor to subscribe to one or more lists. Using the widget, you can provide subscription…


Refine Search

Save This Search?

Saved Searches

You have not saved any searches yet.