All Projects → disqus → Disqus Wordpress Plugin

disqus / Disqus Wordpress Plugin

WordPress plugin for Disqus (2018 version)

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Disqus Wordpress Plugin

Momtaz Nmwdhj
A WordPress forms elements API plugin.
Stars: ✭ 11 (-63.33%)
Mutual labels:  wordpress
Wordpress Related
WordPress codes
Stars: ✭ 15 (-50%)
Mutual labels:  wordpress
Kandinsky
Проект Кандинский. Красивый сайт для НКО
Stars: ✭ 27 (-10%)
Mutual labels:  wordpress
Wordpress Admin Style
Shows the WordPress admin styles on one page to help you to develop WordPress compliant
Stars: ✭ 871 (+2803.33%)
Mutual labels:  wordpress
Wordpress Exploit Framework
A Ruby framework designed to aid in the penetration testing of WordPress systems.
Stars: ✭ 882 (+2840%)
Mutual labels:  wordpress
Cmb2 Extension
This Repository is a extensions of CMB2 WordPress Plugin.
Stars: ✭ 20 (-33.33%)
Mutual labels:  wordpress
Better Search
Better Search WordPress plugin
Stars: ✭ 9 (-70%)
Mutual labels:  wordpress
Wordpress To Jekyll Exporter
One-click WordPress plugin that converts all posts, pages, taxonomies, metadata, and settings to Markdown and YAML which can be dropped into Jekyll
Stars: ✭ 951 (+3070%)
Mutual labels:  wordpress
Pods
The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
Stars: ✭ 883 (+2843.33%)
Mutual labels:  wordpress
Blog Post Workflow
Show your latest blog posts from any sources or StackOverflow activity or Youtube Videos on your GitHub profile/project readme automatically using the RSS feed
Stars: ✭ 910 (+2933.33%)
Mutual labels:  wordpress
Cloud Native Workloads On Linuxone
In this code we will show how to run open source Cloud-Native workloads on Linux One. LinuxONE is built for open source.
Stars: ✭ 13 (-56.67%)
Mutual labels:  wordpress
Woocommerce
An open source eCommerce plugin for WordPress.
Stars: ✭ 7,473 (+24810%)
Mutual labels:  wordpress
Pmpro Addon Packages
Charge for access to specific pages or other post types in WordPress. Requires the Paid Memberships Pro plugin.
Stars: ✭ 20 (-33.33%)
Mutual labels:  wordpress
Wp Downloadmanager
Adds a simple download manager to your WordPress blog.
Stars: ✭ 11 (-63.33%)
Mutual labels:  wordpress
Wp Bootstrap4 Megamenu Navwalker
A Navwalker to impliment a widget based Mega Menu using Bootstrap 4.0 nav classes
Stars: ✭ 28 (-6.67%)
Mutual labels:  wordpress
Heroku Wp
WordPress on Heroku
Stars: ✭ 865 (+2783.33%)
Mutual labels:  wordpress
Builder Template Categories
Organize your Page Builder Templates in the WordPress Admin. Time saver, especially for bigger projects. Get a better and faster overview, don't get lost. Filter templates with your categories. With extended plugin & theme support.
Stars: ✭ 20 (-33.33%)
Mutual labels:  wordpress
Wp2static
WordPress static site generator for security, performance and cost benefits
Stars: ✭ 952 (+3073.33%)
Mutual labels:  wordpress
Ultimate Blocks
Custom Gutenberg Blocks for Bloggers and Marketers. Create Better Content With Gutenberg.
Stars: ✭ 29 (-3.33%)
Mutual labels:  wordpress
Fancy Product Designer Extended
Updated fancy product designer plugin
Stars: ✭ 21 (-30%)
Mutual labels:  wordpress

Build Status

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:

  • Install Composer, yarn and MySQL.
  • From the root project directory, run $ yarn, $ composer install and $ composer global require "phpunit/phpunit=4.8.*" (You may change the version to 6.* if you're running PHP >= 7.0).
  • To create the WordPress test instance, run $ bash bin/install-wp-tests.sh wordpress_test root '' localhost latest
  • You should now be able to run $ make test to run both the PHPUnit tests and the frontend JavaScript 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 not 'post' or 'page' types
  • Posts or pages that have comment turned off
  • Draft posts

The filter will pass one argument, the $script_name enumeration, which can be:

  • 'count' — The count.js script file for showing comment counts next to a link
  • 'embed' — The commenting embed.js file

In this example, you can add a filter which disables the comment count script, while still allowing the comments embed to load:

function filter_dsq_can_load( $script_name ) {
    // $script_name is either 'count' or 'embed'.
	if ( 'count' === $script_name ) {
		return false;
	}

	return true;
}
add_filter( 'dsq_can_load', 'filter_dsq_can_load' );
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].