ordered functions names and files
This commit is contained in:
parent
a65f964aa1
commit
62d501b0d2
|
@ -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 <strong>options</strong> for <strong>arcHIVE website</strong> 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 <strong>options</strong> for <strong>arcHIVE website</strong> 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
|
||||
|
|
|
@ -1,27 +0,0 @@
|
|||
<!-- as explained here to translate custom post fields -->
|
||||
<!-- https://polylang.pro/doc/the-wpml-config-xml-file/ -->
|
||||
<!-- -->
|
||||
<wpml-config>
|
||||
<custom-fields>
|
||||
<custom-field action="copy">arcHIVE_homehero-checkbox</custom-field>
|
||||
<custom-field action="translate">arcHIVE_post-wysiwygsummary</custom-field>
|
||||
</custom-fields>
|
||||
<!-- <custom-types>
|
||||
<custom-type translate="1">book</custom-type>
|
||||
<custom-type translate="1">DVD</custom-type>
|
||||
</custom-types> -->
|
||||
<!-- <taxonomies>
|
||||
<taxonomy translate="1">genre</taxonomy>
|
||||
</taxonomies> -->
|
||||
<!-- <admin-texts>
|
||||
<key name="tgb_showinhome_hero">
|
||||
<key name="option_name_1" />
|
||||
<key name="option_name_2" />
|
||||
<key name="options_group_1">
|
||||
<key name="sub_option_name_11" />
|
||||
<key name="sub_option_name_12" />
|
||||
</key>
|
||||
</key>
|
||||
<key name="simple_string_option" />
|
||||
</admin-texts> -->
|
||||
</wpml-config>
|
Loading…
Reference in New Issue