kollapsminoriteten/wp-content/plugins/simple-user-avatar/simple-user-avatar.php

47 lines
1.1 KiB
PHP
Raw Normal View History

2022-01-14 13:13:03 +01:00
<?php
/**
2022-04-02 10:26:41 +02:00
* Plugin Name: Simple User Avatar
* Plugin URI: https://wordpress.org/plugins/simple-user-avatar/
* Description: Add a <strong>user avatar</strong> using images from your Media Library.
2023-12-07 09:44:11 +01:00
* Version: 4.3
2022-04-02 10:26:41 +02:00
* Requires at least: 4.0
* Requires PHP: 7.3
* Author: Matteo Manna
* Author URI: https://matteomanna.com/
* License: GPL v2 or later
* License URI: https://www.gnu.org/licenses/gpl-2.0.html
* Text Domain: simple-user-avatar
2022-01-14 13:13:03 +01:00
*/
// Injection prevention
2022-04-02 10:26:41 +02:00
if ( !defined('ABSPATH') ) {
2023-12-07 09:44:11 +01:00
exit;
2022-04-02 10:26:41 +02:00
}
2022-01-14 13:13:03 +01:00
/**
* Global defines
*
2022-04-02 10:26:41 +02:00
* @since 2.8
2022-01-14 13:13:03 +01:00
*/
2022-04-02 10:26:41 +02:00
if ( !defined('SUA_PLUGIN_VERSION') ) {
2023-12-07 09:44:11 +01:00
define( 'SUA_PLUGIN_VERSION', 4.3 );
2022-04-02 10:26:41 +02:00
}
2022-01-14 13:13:03 +01:00
2022-04-02 10:26:41 +02:00
if ( !defined('SUA_USER_META_KEY') ) {
2023-12-07 09:44:11 +01:00
define( 'SUA_USER_META_KEY', 'mm_sua_attachment_id' );
2022-04-02 10:26:41 +02:00
}
2022-01-14 13:13:03 +01:00
2022-04-02 10:26:41 +02:00
if ( !defined('SUA_TRANSIENT_NAME') ) {
2023-12-07 09:44:11 +01:00
define( 'SUA_TRANSIENT_NAME', 'sua_notice_is_expired' );
2022-04-02 10:26:41 +02:00
}
2022-01-14 13:13:03 +01:00
2022-04-02 10:26:41 +02:00
/**
* Require classes
*
* @since 2.5
*/
2022-01-14 13:13:03 +01:00
require_once plugin_dir_path( __FILE__ ) . 'public/class-sua-public.php';
2022-04-02 10:26:41 +02:00
if ( is_admin() ) {
2023-12-07 09:44:11 +01:00
require_once plugin_dir_path( __FILE__ ) . 'admin/class-sua-admin.php';
2022-04-02 10:26:41 +02:00
}