Skip to content

Sanjeeb Aryal

Just another personal blog. Created with ❤️ in WordPress.

Menu

  • Home
  • Blog
  • Customer Journey 🛒

Development

Load Assets Conditionally in your WordPress Plugin

Load Assets Conditionally in your WordPress Plugin

wp_enqueue_scripts hook is the proper hook to enqueue assets (despite the name, both CSS & JS) in the front end. However, if you enqueue assets this way, like all the examples on that documentation – the assets will be loaded

Sanjeev Aryal March 10, 2023March 10, 2023 Development No Comments Read more

Remove Action Scheduler Completed Tasks

Remove Action Scheduler Completed Tasks

When using Action Scheduler to schedule processing the tasks, the completed tasks are stored for 30 days in your database by default. You might want to remove the action scheduler completed tasks a little earlier or instantly after completion. The

Sanjeev Aryal February 3, 2023February 3, 2023 Development No Comments Read more

“Headers already sent” warning doesn’t appear on localhost

“Headers already sent” warning doesn’t appear on localhost

Have you ever worked on your local environment – looks fine, and then your live server produces the following error?     Warning Cannot modify header information – headers already sent by… This usually happens because output buffering is often

Sanjeev Aryal February 1, 2023March 9, 2023 Development No Comments Read more

[Fix] deprecated: Required parameter follows optional parameter

[Fix] deprecated: Required parameter follows optional parameter

This type of error occurs in PHP 8 and higher. This means if you have a function and an optional parameter comes first and then the required param – this deprecation message triggers. Example. Here $a is an optional parameter,

Sanjeev Aryal January 18, 2023February 17, 2023 Development No Comments Read more

Upgrade your composer to v2, please.

Upgrade your composer to v2, please.

Featured Image: “Vintage Typewriter Composing” by Wendelin Jacober is marked with CC0 1.0. Composer v2 has significantly improved performance. It updates your packages faster, ignoring already installed packages. If you’re still using composer v1.x – you have probably seen the warning message: Warning

Sanjeev Aryal January 4, 2023February 17, 2023 Development No Comments Read more
  • « Previous
Featured Plugin 💯

Customer Journey For WooCommerce
Track every step of the visitor on the site until the order of the product. Displays the customer journey map right in the WooCommerce orders page. Learn More.

Trending Posts
Copyright © 2023 Sanjeeb Aryal. All rights reserved. Theme Spacious by ThemeGrill. Powered by: WordPress.
  • Privacy Policy
  • Write For Me