Bookmarks snippets

Note: All code examples on this site are provided for developer reference/guidance only and we cannot guarantee that they will always work as expected. Our support policy does not include assistance with modifying or debugging code from any code examples, and they may be changed or removed if we find they no longer work due to changes in our plugins.

Please use the Code Snippets plugin, rather than adding the code samples below directly to your theme’s functions.php file. That will help ensure that any code errors won’t crash your site, and the changes will not be overwritten when you update your theme.


↑ Back to Top Count Bookmarks

<th><?php $count_b = count($bookmarks) - 2; echo $count_b; ?></th>

Add this code to wp-job-manager-bookmarks/templates/my-bookmarks.php to display the number of bookmarks.

↑ Back to Top Change “Bookmark this Job” to “Save this Job”

add_filter('gettext', 'translate_text');

function translate_text($translated) { 
$translated = str_ireplace('Bookmark This %s', 'Save this Job', $translated); 
return $translated; 
}