Gettext_Translations::set_header() public WP 1.0
{} It's a method of the class: Gettext_Translations{}
No Hooks.
Return
null
. Null. Nothing.
Usage
$Gettext_Translations = new Gettext_Translations(); $Gettext_Translations->set_header( $header, $value );
- $header(string) (required)
- -
- $value(string) (required)
- -
Code of Gettext_Translations::set_header() Gettext Translations::set header WP 5.7.1
function set_header( $header, $value ) {
parent::set_header( $header, $value );
if ( 'Plural-Forms' === $header ) {
list( $nplurals, $expression ) = $this->nplurals_and_expression_from_header( $this->get_header( 'Plural-Forms' ) );
$this->_nplurals = $nplurals;
$this->_gettext_select_plural_form = $this->make_plural_form_function( $nplurals, $expression );
}
}