{"repo":"disqus/disqus-wordpress-plugin","free":true,"listed":false,"github":"https://github.com/disqus/disqus-wordpress-plugin","clone":"git clone https://github.com/disqus/disqus-wordpress-plugin.git","description":"WordPress plugin for Disqus (Latest version)","language":"TypeScript","stars":35,"topics":["wordpress","php","react","typescript"],"license":null,"category":"deployment-docker-iac","readme_excerpt":"Disqus WordPress Plugin Local Testing There's a Docker configuration to bootstrap a local WordPress installation. To start it: - You'll need both Docker and yarn installed on your local machine. - From the root directory, run $ yarn to install the frontend dependencies. - Once that's done, run $ make run to build the docker image. - Install wordpress with the default values by running $ make install . - Activate the Disqus plugin using $ make activate . - Alternatively you can now complete configuration by going to: http://localhost:8888/wp-admin/install.php - Otherwise you can continue to: http://localhost:8888/ Unit tests To run unit tests locally: - Run $ make docker-test . This will run all frontend (Jest) and backend (PHPUnit) tests. Installing to existing WordPress site To install the plugin on an existing WordPress site, you'll need to build the frontend and create a .zip file: - Make sure you have yarn installed on your local machine. - From the root directory, run $ make dist . - From your WordPress plugin page, select Plugins- Add New- Upload Plugin and choose the disqus.zip file you created. - Activate the plugin and then install using the instructions in the plugin. Custom Filters dsq can load You can override when Disqus loads on a certain page using the dsq can load filter. By default Disqus won't load scripts on: - On RSS feed pages - If the shortname is missing from the configuration Additionally Disqus will not load the embed.js script: - On pages that are no","default_branch":null,"files":null,"tree":[],"storefront":"/r/disqus","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/disqus/disqus-wordpress-plugin/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}