I can’t find where a hook is being defined in a plugin – Easy Digital Downloads

in

includes/actions.php

there’s

function edd_post_actions() {
    $key = ! empty( $_POST['edd_action'] ) ? sanitize_key( $_POST['edd_action'] ) : false;
    if ( ! empty( $key ) ) {
        do_action( "edd_{$key}", $_POST );
    }
}
add_action( 'init', 'edd_post_actions' );

in

templates/shortcode-profile-editor.php

there’s

..input type="hidden" name="edd_action" value="edit_user_profile" ..

which, if the two are used together, would make

do_action( 'edd_edit_user_profile', $_POST );

As I said in my comment on your post – its very common in WP for actions to be dynamic, so you need to be less specific on your search, exempting the prefix, variable actions, or just remove the key and search a large do_action query instead.

Leave a Comment