WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Авторские Темы для WordPress
класс не описан

ACF_Admin_Tool{} ACF 1.0

Хуков нет.

Возвращает

null. Ничего.

Использование

$ACF_Admin_Tool = new ACF_Admin_Tool();
// use class methods

Методы

  1. __construct()
  2. get_name()
  3. get_title()
  4. get_url()
  5. html()
  6. initialize()
  7. is_active()
  8. load()
  9. submit()

Код ACF_Admin_Tool{} ACF 5.9.1

<?php
class ACF_Admin_Tool {
	
	
	/** @var string Tool name */
	var $name = '';
	

	/** @var string Tool title */
	var $title = '';
	
	
	/** @var string Dashicon slug */
	//var $icon = '';
	
	
	/** @var boolean Redirect form to single */
	//var $redirect = false;
	
	
	/**
	*  get_name
	*
	*  This function will return the Tool's name
	*
	*  @date	19/10/17
	*  @since	5.6.3
	*
	*  @param	n/a
	*  @return	n/a
	*/
	
	function get_name() {
		return $this->name;
	}
	
	
	/**
	*  get_title
	*
	*  This function will return the Tool's title
	*
	*  @date	19/10/17
	*  @since	5.6.3
	*
	*  @param	n/a
	*  @return	n/a
	*/
	
	function get_title() {
		return $this->title;
	}
	
	
	/**
	*  get_url
	*
	*  This function will return the Tool's title
	*
	*  @date	19/10/17
	*  @since	5.6.3
	*
	*  @param	n/a
	*  @return	n/a
	*/
	
	function get_url() {
		return acf_get_admin_tool_url( $this->name );
	}
	
	
	/**
	*  is_active
	*
	*  This function will return true if the tool is active
	*
	*  @date	19/10/17
	*  @since	5.6.3
	*
	*  @param	n/a
	*  @return	bool
	*/
	
	function is_active() {
		return acf_maybe_get_GET('tool') === $this->name;
	}
	
	
	/*
	*  __construct
	*
	*  This function will setup the class functionality
	*
	*  @type	function
	*  @date	27/6/17
	*  @since	5.6.0
	*
	*  @param	n/a
	*  @return	n/a
	*/
	
	function __construct() {
		
		// initialize
		$this->initialize();
		
	}
	
	
	/**
	*  initialize
	*
	*  This function will initialize the admin tool
	*
	*  @date	10/10/17
	*  @since	5.6.3
	*
	*  @param	n/a
	*  @return	n/a
	*/
	
	function initialize() {
		
		/* do nothing */
			
	}
	
	
	
	/**
	*  load
	*
	*  This function is called during the admin page load
	*
	*  @date	10/10/17
	*  @since	5.6.3
	*
	*  @param	n/a
	*  @return	n/a
	*/
	
	function load() {
		
		/* do nothing */
			
	}
	
	
	/**
	*  html
	*
	*  This function will output the metabox HTML
	*
	*  @date	10/10/17
	*  @since	5.6.3
	*
	*  @param	n/a
	*  @return	n/a
	*/
	
	function html() {
		
		
		
	}
	
	
	/**
	*  submit
	*
	*  This function will run when the tool's form has been submit
	*
	*  @date	10/10/17
	*  @since	5.6.3
	*
	*  @param	n/a
	*  @return	n/a
	*/
	
	function submit() {
		
		
	}
	
	
}