update_footer
Filters the version/update text displayed in the admin footer.
Description
WordPress prints the current version and update information, using core_update_footer(…)
at priority 10
.
Parameters (1)
- 0. $var (string) =>
''
- The content that will be printed.
Usage
- To run the hook, copy the example below.
- $var = apply_filters( 'update_footer', $var );
- if ( !empty( $var ) ) {
- // everything has led up to this point...
- }
- The following example is for adding a hook callback.
- // define the update_footer callback
- function filter_update_footer( $var ) {
- // make filter magic happen here...
- return $var;
- };
- // add the filter
- add_filter( 'update_footer', 'filter_update_footer', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the filter
- remove_filter( 'update_footer', 'filter_update_footer', 10, 1 );
Defined (1)
The filter is defined in the following location(s).
- /wp-admin/admin-footer.php
- echo apply_filters( 'update_footer', '' );