-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontentauth.php
More file actions
37 lines (31 loc) · 1.59 KB
/
contentauth.php
File metadata and controls
37 lines (31 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php
/**
* Plugin Name: Content Authenticity
* Plugin URI: https://github.com/contentauth/wp-plugin
* Description: Read and sign C2PA content credentials. Supports conformant product signatures and CAWG organizational signatures via a secure remote signing service so private keys never touch the WordPress server.
* Version: 0.1.0
* Requires at least: 6.3
* Requires PHP: 8.1
* Author: Content Authenticity Initiative
* Author URI: https://contentauthenticity.org
* License: Apache-2.0 or MIT
* Text Domain: contentauth
* Domain Path: /languages
*/
declare( strict_types=1 );
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
define( 'CONTENTAUTH_VERSION', '0.1.0' );
define( 'CONTENTAUTH_PLUGIN_FILE', __FILE__ );
define( 'CONTENTAUTH_PLUGIN_DIR', plugin_dir_path( __FILE__ ) );
define( 'CONTENTAUTH_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'CONTENTAUTH_OPTION_GROUP', 'contentauth_settings' );
require_once CONTENTAUTH_PLUGIN_DIR . 'includes/class-contentauth.php';
require_once CONTENTAUTH_PLUGIN_DIR . 'includes/class-c2pa-client.php';
require_once CONTENTAUTH_PLUGIN_DIR . 'includes/admin/class-settings-page.php';
require_once CONTENTAUTH_PLUGIN_DIR . 'includes/admin/class-media-library.php';
require_once CONTENTAUTH_PLUGIN_DIR . 'includes/rest/class-credentials-controller.php';
register_activation_hook( __FILE__, array( 'ContentAuth\\Plugin', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'ContentAuth\\Plugin', 'deactivate' ) );
add_action( 'plugins_loaded', array( 'ContentAuth\\Plugin', 'instance' ) );