wp_cache_plugin_actions()
No Hooks.
Returns
null. Nothing (null).
Usage
wp_cache_plugin_actions( $links, $file );
- $links(required)
- .
- $file(required)
- .
wp_cache_plugin_actions() wp cache plugin actions code WPSCache 3.1.1
function wp_cache_plugin_actions( $links, $file ) {
if ( $file === 'wp-super-cache/wp-cache.php' && function_exists( 'admin_url' ) && is_array( $links ) ) {
$settings_link = '<a href="' . admin_url( 'options-general.php?page=wpsupercache' ) . '">' . __( 'Settings', 'wp-super-cache' ) . '</a>';
array_unshift( $links, $settings_link ); // before other links
}
return $links;
}