• Hello!

    I am developing a WordPress plugin, and I am curious if I can use functions without Actions or Filters?

    The reason I am asking is because I have added a button to a custom plugin page within the admin that uploads a CSV file.

    When I click the button, it uses PHP_SELF to post the information back to the same page, and uses isset() to see if the data is available.

    If it is available, I have a custom function that runs and uses:

    wp_create_user()

    However, it is giving me the error:

    Fatal error: Call to undefined function wp_hash_password()

    It is obvious this function does not exist in the wp-includes/registration.php file I loaded with require_once() in order to use wp_create_user()

    It seems like wp_hash_password() is in a different file, and because I am not using a WordPress Action or Filter it is bypassing the loading stage for this file.

    Is my thinking correct?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Basic Plugin Question’ is closed to new replies.