Skip to content

Commit

Permalink
Merge pull request #67 from washingtonstateuniversity/version/0.9.0
Browse files Browse the repository at this point in the history
[PR] Bump version 0.9.0, update README
  • Loading branch information
jeremyfelt committed Jul 26, 2017
2 parents 0c134bf + 1869ee3 commit c89bbc0
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 0.9.0 (TBD)
## 0.9.0 (July 26, 2017)

* Provide ability to filter the post type used for each center object.

Expand Down
42 changes: 41 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,46 @@
# University Center Objects

A WordPress plugin that provides content objects and relationships common to a center, institute, or other organization at a university.
A WordPress plugin to associate people, projects, organizations, and publications.

People from organizations work together on projects and publish their research. This plugin makes it easy to associate these 4 content types with each other. Through a set of filters it's possible to customize this completely to change the included content types and redefine them entirely.

By default, University Center Objects provides 4 custom post types that are common to a center, institute, or other organization at a university:

* People
* Organization (entity)
* Project
* Publication

Once associated with each other, lists of these objects will appear on their respective individual front-end views that show the association.

## Theme support

All content types will show up in all themes by default. No explicit theme support is required. It is possible to limit the number of content types supported by the theme by explicitly registering theme support. If at least one content type is explicitly added, the content types not explicitly added will no longer appear.

* `add_theme_support( 'wsuwp_uc_person' )`
* `add_theme_support( 'wsuwp_uc_project' )`
* `add_theme_support( 'wsuwp_uc_entity' )`
* `add_theme_support( 'wsuwp_uc_publication' )`

## Filters

Content type filters are `false` by default. Use the filter to return a `string` containing a post type's slug to replace that content type with one of your own.

* `wsuwp_uc_people_content_type`
* `wsuwp_uc_project_content_type`
* `wsuwp_uc_entity_content_type`
* `wsuwp_uc_publication_content_type`

Other filters are provided to modify the names used when registering the plugin's built in content types. For example, the word "Publication" is used by default for the publication post type. This can be changed to "Paper" or "Abstract" using the provided filter.

* `wsuwp_uc_project_type_names`
* `wsuwp_uc_people_type_names`
* `wsuwp_uc_entity_type_names`
* `wsuwp_uc_publication_type_names`

When a list of associated objects is displayed on another object's view, a filter can be used to determine which of those associated objects should be listed (if any at all).

* `wsuwp_uc_people_to_add_to_content`

## Extending WSUWP Content Syndicate

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "wsuwp-plugin-university-center",
"version": "0.8.1",
"version": "0.9.0",
"repository": {
"type": "git",
"url": "https://github.com/washingtonstateuniversity/wsuwp-university-center"
Expand Down
8 changes: 4 additions & 4 deletions wsuwp-university-center.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*
Plugin Name: University Center Objects
Plugin URI: https://web.wsu.edu/wordpress/plugins/university-center-objects/
Description: Provides content objects and relationships common to a center, institute, or other organization at a university.
Plugin URI: https://github.com/washingtonstateuniversity/WSUWP-Plugin-University-Center
Description: Associate people, projects, organizations, and publications.
Author: washingtonstateuniversity, jeremyfelt
Version: 0.8.1
Version: 0.9.0
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/
Expand All @@ -19,7 +19,7 @@ class WSUWP_University_Center {
*
* @var string
*/
var $plugin_version = '0.8.1';
var $plugin_version = '0.9.0';

/**
* The slug used to register the project custom content type.
Expand Down

0 comments on commit c89bbc0

Please sign in to comment.