Skip to content

Readme should note that the extending class should be initialized #9

@r-a-y

Description

@r-a-y

In the Quick Start section of the README.md, there should be a note saying that the extended class should be initialized.

For example:

new JPB_Async_Task;

It's a small thing, but people can over look that 😄

Update:

I see that it's noted on this line:

Make sure that you instantiate your asynchronous task once. Do this no earlier than the 'plugins_loaded' action.

Maybe add a code example?

function jpb_async_task_init() {
    new JPB_Async_Task;
}
add_action( 'plugins_loaded', 'jpb_async_task_init' );

I would normally write this as an anonymous function, but WP supports a minimum of PHP 5.2.4.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions