Posts related to: Proof of Concept

An SVG logo Custom Control for the WordPress Customizer

Another proof of concept. The custom control You create a custom control by extending the WP_Customize_Control class. I check for WP_Customizer_Control existence before adding custom control because WP_Customize_Control is loaded on customizer page only. list_svg() Create a option list with URLs to SVG files. The SVG files are defined in svg.json...

WP Gears and the Heartbeat API

Testing WP Gears and the Heartbeat API, WP Gears is at https://github.com/10up/WP-Gears. NOTE: this plugin is run continuously, triggered by 'plugins_loaded', you should use an event triggered by the user (onclick, onhover etc))

DropzoneJS & WordPress REST API with Custom Endpoint

The plugin provides drag’n’drop file uploads and uses the wp rest api to upload the file. This version adds a custom endpoint, has code for handling the upload and uploads the file to uploads/yyyy/mm without adding the file to the media library.  If you need to upload the file to the...

DropzoneJS & WordPress REST API

The plugin provides drag’n’drop file uploads and uses the wp rest api to upload the file. BTW, I've written a similar plugin that uses the WordPress AJAX API for file uploads. dropzonejs-wp-rest-api.php dropzonejs-wp-rest-api.js Installation Save dropzonejs-wp-rest-api.php in wp-content/plugins/dropzonejs-wp-rest-api/ Save dropzonejs-wp-rest-api.js in wp-content/plugins/dropzonejs-wp-rest-api/js/ Use After activating the plugin, add the [dropzonerest]...

DropzoneJS & WordPress AJAX API

  The plugin below demos how to integrate DropzoneJS with WordPress. BTW, I've written a similar plugin that uses the WP REST API for file upload. Install and activate the plugin, and use the `[dropzonejs]` shortcode to display the drop zone. Plugin customize_dropzonejs.js Here's a sample customize_dropzonejs.js, the options are documented...