mirror of
https://github.com/inretio/WordPress-Plugin-Boilerplate
synced 2024-12-22 20:03:53 +02:00
removing the original example functions and replacing them with functions that use existing boilerplate files
This commit is contained in:
parent
40fd22a297
commit
a9e071aef8
1 changed files with 5 additions and 6 deletions
|
@ -27,9 +27,8 @@ class Plugin_Name_Admin {
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @link URL
|
* @link URL
|
||||||
* @param integer $post_id The ID of the post that will be saved.
|
|
||||||
*/
|
*/
|
||||||
public function save_post( $post_id ) {
|
public function enqueue_styles() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function is provided for demonstration purposes only.
|
* This function is provided for demonstration purposes only.
|
||||||
|
@ -43,6 +42,8 @@ class Plugin_Name_Admin {
|
||||||
* class.
|
* class.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
wp_enqueue_style( 'plugin-name-admin', plugin_dir_url( __FILE__ ) . 'css/plugin-name-admin.css', array(), PLUGIN_NAME_VER, 'all' );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -52,10 +53,8 @@ class Plugin_Name_Admin {
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
* @link URL
|
* @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 ) {
|
public function enqueue_scripts() {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This function is provided for demonstration purposes only.
|
* This function is provided for demonstration purposes only.
|
||||||
|
@ -69,7 +68,7 @@ class Plugin_Name_Admin {
|
||||||
* class.
|
* class.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
return $content;
|
wp_enqueue_script( 'plugin-name-admin', plugin_dir_url( __FILE__ ) . 'js/plugin-name-admin.js', array( 'jquery' ), PLUGIN_NAME_VER, FALSE );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue