Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

it:Riferimento funzioni/ return null

This page redirects to an external site: https://developer.wordpress.org/reference/functions/__return_null/

Descrizione

Restituisce null.

Utile per restituire null ai filtri in modo facile.

Utilizzo

<code style="color: #000000"><span style="color: #0000BB"><?php 
</span><span style="color: #FF8000">// Quanto segue aggiunge un filtro su `esempio_filtro` che restituisce null
</span><span style="color: #0000BB">add_filter</span><span style="color: #007700">(</span><span style="color: #DD0000">'esempio_filtro'</span><span style="color: #007700">, </span><span style="color: #DD0000">'__return_null'</span><span style="color: #007700">); 
</span><span style="color: #0000BB">?></span></code>

Valori restituiti

(null) 
null

Log delle modifiche

Da: 3.4

File sorgente

__return_null() si trova in wp-includes/functions.php

Correlati