Skip to content

gizycki/wordpress-plugin

 
 

Repository files navigation

WECHANGE COLLECTION

This plugin combines some nice utilities to integrate WECHANGE with your WordPress site.

Currently there is:

  • a shortcode for fetch statistics
  • a shortcode to show projects
  • a shortcode to show notes
  • a shortcode to show events
  • a utility to redirect logged in users directly to the WECHANGE platform

SETUP

There is a Constant needed in the wp-config file called WECHANGE_BASE_URL define it like this

define('WECHANGE_BASE_URL', 'https://yourinstallation.tld' );

If you intstallation has multiple partners you can define a scope - eg. for separate statistisc

define('WECHANGE_SCOPE', 'thispartner');

Default caching time for content that is fetched from the API is 2 hours. There are filter to overwrite this.

The utility to redirect logged in users to the platform is disabled by default. Activate it like this in your theme:

add_theme_support( 'wechange-collection-login-status' );

All template files can be overwritten - see the template files for more information.

The plugin can be translated. See the language folder.

About

WordPress Plugin to integrate WECHANGE in WordPress pages.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PHP 91.3%
  • JavaScript 8.7%