shortcut_link
Filter HookDescription
Filters the Press This bookmarklet link.Hook Information
File Location |
wp-includes/deprecated.php
View on GitHub
|
Hook Type | Filter |
Line Number | 3949 |
Hook Parameters
Type | Name | Description |
---|---|---|
string
|
$link
|
The Press This bookmarklet link. |
Usage Examples
Basic Usage
<?php
// Hook into shortcut_link
add_filter('shortcut_link', 'my_custom_filter', 10, 1);
function my_custom_filter($link) {
// Your custom filtering logic here
return $link;
}
Source Code Context
wp-includes/deprecated.php:3949
- How this hook is used in WordPress core
<?php
3944 * @since 2.6.0
3945 * @deprecated 4.9.0
3946 *
3947 * @param string $link The Press This bookmarklet link.
3948 */
3949 return apply_filters( 'shortcut_link', $link );
3950 }
3951
3952 /**
3953 * Ajax handler for saving a post from Press This.
3954 *
PHP Documentation
<?php
/**
* Filters the Press This bookmarklet link.
*
* @since 2.6.0
* @deprecated 4.9.0
*
* @param string $link The Press This bookmarklet link.
*/
Quick Info
- Hook Type: Filter
- Parameters: 1
- File: wp-includes/deprecated.php
Related Hooks
Related hooks will be displayed here in future updates.