Skip to content

Commit

Permalink
Fixed parameters for wp_insert_attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Jan 13, 2025
1 parent bd3fa0d commit 53c1a55
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions stubs/WordPress/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1478,12 +1478,19 @@ function wp_get_theme( $stylesheet = '', $theme_root = '' ) {
* @type array<string, mixed> $meta_input
* }
* @param string|false $file
* @param int $parent
* @param int $parent_post_id
* @param bool $wp_error
* @param bool $fire_after_hooks
*
* @return int|WP_Error
*/
function wp_insert_attachment( $args, $file = false, $parent = 0, $wp_error = false ) {
function wp_insert_attachment(
$args,
$file = false,
$parent_post_id = 0,
$wp_error = false,
$fire_after_hooks = true
) {
}

/**
Expand Down

0 comments on commit 53c1a55

Please sign in to comment.