Failed to save the file to the "xx" directory.

Failed to save the file to the "ll" directory.

Failed to save the file to the "mm" directory.

Failed to save the file to the "wp" directory.

403WebShell
403Webshell
Server IP : 66.29.132.124  /  Your IP : 3.143.237.54
Web Server : LiteSpeed
System : Linux business141.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64
User : wavevlvu ( 1524)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/wavevlvu/blog.diixadigital.com/wp-content/plugins/taxonomy-meta/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/wavevlvu/blog.diixadigital.com/wp-content/plugins/taxonomy-meta/demo.php
<?php
/**
 * Registering meta sections for taxonomies
 *
 * All the definitions of meta sections are listed below with comments, please read them carefully.
 * Note that each validation method of the Validation Class MUST return value.
 *
 * You also should read the changelog to know what has been changed
 *
 */

// Hook to 'admin_init' to make sure the class is loaded before
// (in case using the class in another plugin)
add_action( 'admin_init', 'YOUR_PREFIX_register_taxonomy_meta_boxes' );

/**
 * Register meta boxes
 *
 * @return void
 */
function YOUR_PREFIX_register_taxonomy_meta_boxes()
{
	// Make sure there's no errors when the plugin is deactivated or during upgrade
	if ( !class_exists( 'RW_Taxonomy_Meta' ) )
		return;

	$meta_sections = array();

	// First meta section
	$meta_sections[] = array(
		'title'      => 'Standard Fields',             // section title
		'taxonomies' => array('category', 'post_tag'), // list of taxonomies. Default is array('category', 'post_tag'). Optional
		'id'         => 'option_name',                 // ID of each section, will be the option name

		'fields' => array(                             // List of meta fields
			// TEXT
			array(
				'name' => 'Text',                      // field name
				'desc' => 'Simple text field',         // field description, optional
				'id'   => 'text',                      // field id, i.e. the meta key
				'type' => 'text',                      // field type
				'std'  => 'Text',                      // default value, optional
			),
			// TEXTAREA
			array(
				'name' => 'Textarea',
				'id'   => 'textarea',
				'type' => 'textarea',
			),
			// SELECT
			array(
				'name'    => 'Select',
				'id'      => 'select',
				'type'    => 'select',
				'options' => array(                     // Array of value => label pairs for radio options
					'value1' => 'Label 1',
					'value2' => 'Label 2'
				),
			),
			// RADIO
			array(
				'name'    => 'Radio',
				'id'      => 'radio',
				'type'    => 'radio',
				'options' => array(                     // Array of value => label pairs for radio options
					'value1' => 'Label 1',
					'value2' => 'Label 2'
				),
			),
			// CHECKBOX
			array(
				'name' => 'Checkbox',
				'id'   => 'checkbox',
				'type' => 'checkbox',
			),
		),
	);

	// Second meta section
	$meta_sections[] = array(
		'title' => 'Advanced Fields',
		'id'    => 'option_name',

		'fields' => array(
			// CHECKBOX LIST
			array(
				'name'    => 'Checkbox list',
				'id'      => 'checkbox_list',
				'type'    => 'checkbox_list',
				'options' => array(                     // Array of value => label pairs for radio options
					'value1' => 'Label 1',
					'value2' => 'Label 2'
				),
				'desc'    => 'What do you do in free time?'
			),
			// WYSIWYG
			array(
				'name' => 'WYSIWYG Editor',
				'id'   => 'wysiwyg',
				'type' => 'wysiwyg',
			),
			// DATE PICKER
			array(
				'name'   => 'Date Picker',
				'id'     => 'date',
				'type'   => 'date',
				'format' => 'd MM, yy',                // Date format, default yy-mm-dd. Optional. See: http://goo.gl/po8vf
			),
			// TIME PICKER
			array(
				'name'   => 'Time Picker',
				'id'     => 'time',
				'type'   => 'time',
				'format' => 'hh:mm:ss',                // Time format, default hh:mm. Optional. See: http://goo.gl/hXHWz
			),
			// FILE
			array(
				'name' => 'File',
				'id'   => 'file',
				'type' => 'file',
			),
			// IMAGE
			array(
				'name' => 'Image',
				'id'   => 'image',
				'type' => 'image',
			),
			// COLOR PICKER
			array(
				'name' => 'Color Picker',
				'id'   => 'color',
				'type' => 'color',
			),
		),
	);

	foreach ( $meta_sections as $meta_section )
	{
		new RW_Taxonomy_Meta( $meta_section );
	}
}

Youez - 2016 - github.com/yon3zu
LinuXploit