_deprecated_file [ WordPress Function ]
| Access: |
|
| Parameters: |
|
| Uses: | |
| Defined at: |
|
Marks a file as deprecated and informs when it has been used.
There is a hook deprecated_file_included that will be called that can be used to get the backtrace up to what file and function included the deprecated file.
The current behavior is to trigger a user error if WP_DEBUG is true.
This function is to be used in every file that is deprecated.
Source
<?php
function _deprecated_file( $file, $version, $replacement = null, $message = '' ) {
do_action( 'deprecated_file_included', $file, $replacement, $version, $message );
// Allow plugin to filter the output error trigger
if ( WP_DEBUG && apply_filters( 'deprecated_file_trigger_error', true ) ) {
$message = empty( $message ) ? '' : ' ' . $message;
if ( ! is_null( $replacement ) )
trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s! Use %3$s instead.'), $file, $version, $replacement ) . $message );
else
trigger_error( sprintf( __('%1$s is <strong>deprecated</strong> since version %2$s with no alternative available.'), $file, $version ) . $message );
}
}
?>
Examples [ wp-snippets.com ]
Top Google zoekresultaten
- _deprecated_file (WordPress Function) - WPSeek.com
WordPress lookup for _deprecated_file, a WordPress Function. wpseek.com is a WordPress-centric search tool for developers and theme authors.
wpseek.com - call undefined function _deprecated_file wordpress install workers ...
Find Freelance call undefined function _deprecated_file wordpress install Jobs. Hire experienced Freelance call undefined function _deprecated_file wordpress ...
www.freelancer.com - _deprecated_file() WordPress function reference, arguments and ...
Marks a file as deprecated and informs when it has been used.
queryposts.com - PHPXRef 0.7 : WordPress : Function Reference: _deprecated_file()
Function and Method Cross Reference. _deprecated_file(). Defined at: /wp- includes/functions.php -> line 2711. Referenced 13 times: ...
phpxref.ftwr.co.uk