Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated the comment #594

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 13 additions & 10 deletions plugin-name/public/class-plugin-name-public.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,19 @@ public function __construct( $plugin_name, $version ) {
public function enqueue_styles() {

/**
* This function is provided for demonstration purposes only.
*
* An instance of this class should be passed to the run() function
* defined in Plugin_Name_Loader as all of the hooks are defined
* in that particular class.
*
* The Plugin_Name_Loader will then create the relationship
* between the defined hooks and the functions defined in this
* class.
*/
* This function is provided for demonstration purposes only.
* It will add_filter() the default plugin script or sytle.
*
* With the current plugin structure, an instance of this class
* is created by Plugin_Name and then passed to add_action()
* defined in Plugin_Name_Loader.
*
* Then, the run() function defined in Plugin_Name_Loader will
* connect all the hooks that you have registered with add_action()
* in the plugin with wordpress hooks by calling add_filter()
* on each.
*
*/

wp_enqueue_style( $this->plugin_name, plugin_dir_url( __FILE__ ) . 'css/plugin-name-public.css', array(), $this->version, 'all' );

Expand Down