wpce_edit_link_label v3.25.4
Filters the label of the edit link pointing to the WPCE screen in various places.
Parameters
string $labelThe label to show.
WP_Post $postThe post the label relates to.
string $contextThe context in which the link is shown. Possible values are:
settings_button: The big blue button pointing to the WPCE editor from a post's settings page.row_actions: The edit link in the post row actions.
Example
php
add_filter('wpce_edit_link_label', function (string $label, WP_Post $post) {
if ($post->post_type === 'magazine') {
return 'Editorial bearbeiten';
}
return $label;
}, 10, 2);