mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 11:53:53 +02:00
updating the documentation
updating the documentation for the core admin plugin file with docblocks and example functions for how they should be used and their relationship to the admin loader
This commit is contained in:
parent
4504d3a4fd
commit
71ff4b6ec7
1 changed files with 72 additions and 6 deletions
|
@ -1,14 +1,80 @@
|
|||
<?php
|
||||
|
||||
/**
|
||||
* @TEAM: http://make.wordpress.org/core/handbook/inline-documentation-standards/php-documentation-standards/#1-functions-and-class-methods
|
||||
* @TODO
|
||||
* Define a short description for what this class does.
|
||||
*
|
||||
* @package Plugin_Name
|
||||
* @author Your Name <email@example.com>
|
||||
* @license GPL-2.0+
|
||||
* @link http://example.com
|
||||
* @copyright 2014 Your Name or Company Name
|
||||
* @since x.x.x
|
||||
* @package TODO
|
||||
*/
|
||||
|
||||
/**
|
||||
* @TODO
|
||||
* Define a short description for what this class does.
|
||||
*
|
||||
* Define a longer description for the purpose of this class.
|
||||
*
|
||||
* @package TODO
|
||||
* @author Your Name <your@email.com>
|
||||
* @license GPL-2.0+
|
||||
* @link URL
|
||||
* @copyright 2014 Your Name of Your Company Name
|
||||
*/
|
||||
class Plugin_Name_Admin {
|
||||
|
||||
/**
|
||||
* @TODO
|
||||
* Short description. (use period)
|
||||
*
|
||||
* Long description.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @link URL
|
||||
* @param integer $post_id The ID of the post that will be saved.
|
||||
*/
|
||||
public function save_post( $post_id ) {
|
||||
|
||||
/**
|
||||
* This function is provided for demonstration purposes only.
|
||||
*
|
||||
* An instance of this class should be passed to the run() function
|
||||
* defined in Plugin_Name_Admin_Loader as all of the hooks are defined
|
||||
* in that particular class.
|
||||
*
|
||||
* The Plugin_Name_Admin_Loader will then create the relationship
|
||||
* between the defined hooks and the functions defined in this
|
||||
* class.
|
||||
*/
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @TODO
|
||||
* Short description. (use period)
|
||||
*
|
||||
* Long description.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @link URL
|
||||
* @param string $content The content for the post type that's being filtered.
|
||||
* @return string The modified version of the post content.
|
||||
*/
|
||||
public function update_the_content( $content ) {
|
||||
|
||||
/**
|
||||
* This function is provided for demonstration purposes only.
|
||||
*
|
||||
* An instance of this class should be passed to the run() function
|
||||
* defined in Plugin_Name_Admin_Loader as all of the hooks are defined
|
||||
* in that particular class.
|
||||
*
|
||||
* The Plugin_Name_Admin_Loader will then create the relationship
|
||||
* between the defined hooks and the functions defined in this
|
||||
* class.
|
||||
*/
|
||||
|
||||
return $content;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue