wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes
wp_get_pomo_file_data › WordPress Function
Depuis3.7.0
Dépréciéen/a
› wp_get_pomo_file_data ( $po_file )
Paramètres: |
|
Retourne: |
|
Défini(e) dans: |
|
Codex: |
Extracts headers from a PO file.
Fonctions en relation: get_file_data, wp_get_update_data, get_inline_data, get_theme_file_path, wp_get_post_cats
Source
function wp_get_pomo_file_data( $po_file ) { $headers = get_file_data( $po_file, array( 'POT-Creation-Date' => '"POT-Creation-Date', 'PO-Revision-Date' => '"PO-Revision-Date', 'Project-Id-Version' => '"Project-Id-Version', 'X-Generator' => '"X-Generator', ) ); foreach ( $headers as $header => $value ) { // Remove possible contextual '\n' and closing double quote. $headers[ $header ] = preg_replace( '~(\\\n)?"$~', '', $value ); } return $headers; }