From 62d501b0d251ad44d2a43f49d0a5265982871aa2 Mon Sep 17 00:00:00 2001 From: jorge-vitrubio Date: Wed, 30 Mar 2022 11:45:42 +0200 Subject: [PATCH] ordered functions names and files --- arcHIVE-wp-plugin.php | 57 ++++++++++++++++++++++++------------------- wpml-config.xml | 27 -------------------- 2 files changed, 32 insertions(+), 52 deletions(-) delete mode 100644 wpml-config.xml diff --git a/arcHIVE-wp-plugin.php b/arcHIVE-wp-plugin.php index 242ebe0..606d6f2 100644 --- a/arcHIVE-wp-plugin.php +++ b/arcHIVE-wp-plugin.php @@ -7,48 +7,55 @@ * registers the activation and deactivation functions, and defines a function * that starts the plugin. * - * @link https://example.com + * @link https://arc-hive.zone * @since 1.0.0 - * @package Plugin_Name + * @package arcHIVE_WPPlugin * * @wordpress-plugin + * arcHIVE WP Plugin: arcHIVE WP Plugin for theme support + * Plugin URI: https://arc-hive.zone/archive-wpplugin-uri/ + * Description: All the options for arcHIVE website which do not come by default with Wordpress. + * Version: 1.1.0 + * Date: 2022 03 14 + * Author: Jorge - vitrubio.net + * Author URI: https://vitrubio.net/ + * License: GPL-3.0+ + * License URI: http://www.gnu.org/licenses/gpl-3.0.html + * Text Domain: archive-wpplugin + * Domain Path: /languages */ -/** - * Plugin Name: arcHIVE - website options - Plugin URI: https://arc-hive.zone/ - Description: All the options for arcHIVE website which do not come by default with Wordpress. - Version: 0.1 - Author URI: https://vitrubio.net/ - Author: jorge - vitrubio.net - License: GPL 3.0 - Date: 2021 04 14 - License URI:https://www.gnu.org/licenses/gpl-3.0.html - Text Domain: arcHIVE_plugin_txtdomain - Domain Path: /languages - */ - -/** - * if ever read this never forget to check + /** * howto write a pluggin by Wordpress.org * https://codex.wordpress.org/Writing_a_Plugin - * and the best practices * https://developer.wordpress.org/plugins/plugin-basics/best-practices/ - * and some resources * https://themefoundation.com/wordpress-meta-boxes-guide/ */ -defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); +// If this file is called directly, abort. +if ( ! defined( 'WPINC' ) ) { + die; +} +//defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); + + +/** + * Currently plugin version. + * Start at version 1.0.0 and use SemVer - https://semver.org + * Rename this for your plugin and update it as you release new versions. + */ +define( 'ARCHIVE_WPPLUGIN_VERSION', '1.1.0' ); + /* * * Load translation, if it exists * * * * * * * * * * * * * * * * * * */ - function arcHIVE_plugin_init() { + function arcHIVE_init_textdomain() { $plugin_dir = basename(dirname(__FILE__)); - load_plugin_textdomain( 'arcHIVE_plugin_txtdomain', null, $plugin_dir.'/assets/languages/' ); + load_plugin_textdomain( 'archive-wpplugin', null, $plugin_dir.'/assets/languages/' ); } - add_action('plugins_loaded', 'arcHIVE_plugin_init'); + add_action('plugins_loaded', 'arcHIVE_init_textdomain'); /* * * Add mimetypes support: svg @@ -56,7 +63,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' ); function arcHIVE_enable_mime_types( $mimes ) { $mimes['svg'] = 'image/svg+xml'; - return $mimes; + return $mimes; } add_filter('upload_mimes', 'arcHIVE_enable_mime_types'); diff --git a/wpml-config.xml b/wpml-config.xml deleted file mode 100644 index ce1ba6d..0000000 --- a/wpml-config.xml +++ /dev/null @@ -1,27 +0,0 @@ - - - - - - arcHIVE_homehero-checkbox - arcHIVE_post-wysiwygsummary - - - - -