Sending a PUT request with query parameters in the URL
All posts by
See curl for POST, GET, etc examples
/cloud/category/php/curl
Display admin area warning if plugin not active
Getting posted data
Write json POST to a file in API handler so you can view it
Plugin could not be activated because it triggered a fatal error
You try to activate a plugin you’ve ben developing and instead of seeing what the error is, WordPress displays “Plugin could not be activated because it triggered a fatal error.” Add these defines to your wp_config.php The WP_DISABLE_FATAL_ERROR_HANDLER may not work, but your will see the error causing the issue written to: httpdocs/wp-content/debug.log
Throw an exception
Using this: Will give you this:
Images for social media posts
To provide an image to be used when a link to your site is posted on Twitter or Facebook you can to use special meta tags. Example rom the fly.pieter.com website
Menu hooks
Change which menu is used if user logged in Adding items to a menu
Convert seconds to
Convert seconds to HH:MM:SS
Manually trigger cron
spawn_cron() sends a request to run WordPress cron but doesn’t halt page loading.