Last active
February 13, 2025 13:39
-
-
Save yuriinalivaiko/dea3ebbaee3782ef71ff749e461aeefb to your computer and use it in GitHub Desktop.
Code snippets for the "User Bookmarks" extension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Disable the default "Bookmark" button in the post content. | |
if ( defined( 'um_user_bookmarks_version' ) ) { | |
remove_filter( 'the_content', array( UM()->User_Bookmarks()->common(), 'add_um_user_bookmarks_button' ), 20 ); | |
remove_filter( 'the_excerpt', array( UM()->User_Bookmarks()->common(), 'add_um_user_bookmarks_button_excerpt' ), 9999 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A code in the um_user_notes_bookmarks_button.php gist adds the "Bookmark" button to the note modal view. This is a kind of integration between the User Bookmarks and User Notes extensions.
Once the code is added go to wp-admin > Ultimate Member > Settings > Extensions > User Bookmarks and select the Notes option in the Enable bookmark setting to enable this feature.
