Posts in Category: wordpress

What, Why, and How to use WebP image on WordPress

What Why and How to use WebP image on WordPress - What, Why, and How to use WebP image on WordPress

JPG and PNG are the two most commonly used image formats on the internet. In general, PNG is a higher-quality compression format and are better suited for certain uses. Whereas JPGs typically have lower quality, lower file size, but are faster to load and it’s the most widely used format.

Read More


How to Use ajaxurl in WordPress

In the WordPress backend, there is a global ajaxurl variable defined by WordPress itself.
Whereas for the frontend, we have to define the variable by ourselves as it is not created by WP.

The function we use is called wp_localize_script. It takes three arguments:

  • script-handler-name, the registration handler of the ajax-example.js script.
  • A

Read More