-
My draft webpack config
To use jsPDF with Node.js and Chrome browser, you can follow the steps below: Note: If you’re using jsPDF in a browser, you don’t need to install it using npm. You can simply include the jsPDF library in your HTML file using a script tag: phpCopy codehttps://cdnjs.cloudflare.com/ajax/libs/jspdf/2.3.1/jspdf.umd.min.js Uncaught ReferenceError: require is not defined The error…
-
How to download using php, ajax
This code is responsible for handling the click event of a download button on a webpage, and initiating a file download. Here is a detailed description of what the code does:
-
What is php scoper
php-scoper is a tool that adds a unique, per-project namespace to PHP code. This helps to avoid conflicts between different projects that use the same third-party dependencies, by ensuring that each project’s dependencies have a distinct namespace, and won’t collide with other dependencies used by the same project or with other projects that are installed…
-
Register custom REST routes | with regex combination
To register custom REST routes in WordPress, you can use the register_rest_route function. This function takes three parameters: the namespace for the route, the route itself, and an array of options for the route, including the callback function that will handle requests to the route. Here is an example of how to register a custom…
-
PHP __autoload and SPL Library.
If your site is running php 8 version and using __autoload magic method try spl_autoload_register() function. the __autoload magic method is deprecated. well you might have a question why should i use spl prefixed function? Because SPL is a Standard PHP Library. The Standard PHP Library (SPL) is a collection of interfaces and classes that…
-
WordPress local environment zero configuration

It’s been a decades we take lot of pain for setting a local environment. times really sucks write? Well there is some tools available on the internet you can download and start your WordPress website. Sounds great !! Local is a dedicated software for WordPress local environment you just install and set your minimum information…