Skip to content

Commit

Permalink
Merge pull request #79 from skaut/wp_add_inline_scripts
Browse files Browse the repository at this point in the history
Added wp_add_inline_script()
  • Loading branch information
marekdedic authored Feb 5, 2023
2 parents 73b49c0 + 2be8d02 commit 9fec954
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions stubs/WordPress/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1265,6 +1265,16 @@ function update_user_meta( $user_id, $meta_key, $meta_value, $prev_value = '' )
function user_can( $user, $capability, ...$args ) {
}

/**
* @param string $handle
* @param string $data
* @param string $position
*
* @return bool
*/
function wp_add_inline_script( $handle, $data, $position = '' ) {
}

/**
* @param string $handle
* @param string $data
Expand Down

0 comments on commit 9fec954

Please sign in to comment.