willnorris/wordpress-license

This plugins adds the Creative Commons license of choice to a website's metadata.

Installs: 17

Dependents: 0

Suggesters: 0

Security: 0

Stars: 3

Watchers: 4

Forks: 1

Open Issues: 0

Type:wordpress-plugin

13.3.7 2017-01-20 21:24 UTC

This package is not auto-updated.

Last update: 2024-05-14 11:14:02 UTC


README

This plugins adds the Creative Commons license of choice to a website's metadata.

Configuration

The plugin provides no UI for configuring it. Instead, you must define a PHP constant named CC_LICENSE. This is most easily done by adding a snippet like the following to your wp-config.php file:

define('CC_LICENSE', 'http://creativecommons.org/licenses/by-nc-sa/3.0/');

Questions

What exactly does this plugin add to my site?

It adds a <link rel="license" /> element to each page of your site. It also adds an appropriate element to the XML feeds (rdf, rss, atom) for your site.

Can I override the license for a specific post?

Yes, a filter named cc_license is called before returning the license. You can override that value under whatever circumstances you want.