Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_nonce_url ›

Desde2.0.4
Obsoleton/a
wp_nonce_url ( $actionurl, $action = -1, $name = '_wpnonce' )
Parâmetros: (3)
  • (string) $actionurl URL to add nonce action.
    Required: Yes
  • (int|string) $action Optional. Nonce action name. Default -1.
    Required: No
    Padrão: -1
  • (string) $name Optional. Nonce name. Default '_wpnonce'.
    Required: No
    Padrão: '_wpnonce'
Retorna:
  • (string) Escaped URL with nonce action added.
Definido em:
Codex:

Retrieve URL with nonce added to URL query.



Fonte

function wp_nonce_url( $actionurl, $action = -1, $name = '_wpnonce' ) {
	$actionurl = str_replace( '&', '&', $actionurl );
	return esc_html( add_query_arg( $name, wp_create_nonce( $action ), $actionurl ) );
}