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
| /**************************\ | |
| Basic Modal Styles | |
| \**************************/ | |
| .modal { | |
| font-family: -apple-system,BlinkMacSystemFont,avenir next,avenir,helvetica neue,helvetica,ubuntu,roboto,noto,segoe ui,arial,sans-serif; | |
| } | |
| #modal-3 { | |
| display: none; | |
| } |
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
| global $wpdb; | |
| $args = array(); | |
| $default_login = $wpdb->get_var( | |
| "SELECT pm.post_id | |
| FROM {$wpdb->postmeta} pm | |
| LEFT JOIN {$wpdb->postmeta} pm2 ON( pm.post_id = pm2.post_id AND pm2.meta_key = '_um_core' ) | |
| WHERE pm.meta_key = '_um_mode' AND | |
| pm.meta_value = 'login' AND | |
| pm2.meta_value = 'login' " | |
| ); |
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
| $profile_link = um_user_profile_url($user_id); where $user_id is the user id/ID |
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
| == Changelog == | |
| = 1.3.1 = | |
| * [update] Adjusted allow delete all param in my bookmarks shortcode in customizer method | |
| = 1.3.0 = | |
| * [new] Delete all bookmark param in my bookmarks grid shortcode, elementor widget, vc widgets | |
| = 1.2.16 = | |
| * [fixed] Fixed the grid shortcode that was buggy in 1.2.15 version |
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
| add_filter('cbxwpbookmark_bookmarkgrid_cols_class', 'cbxwpbookmark_bookmarkgrid_cols_class_extend', 10, 2); | |
| /** | |
| * Change grid size | |
| * | |
| * @param $grid | |
| * @param $object_type | |
| * | |
| * @return mixed | |
| */ |
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 | |
| /* | |
| Plugin Name: Test List Table Example | |
| */ | |
| if( ! class_exists( 'WP_List_Table' ) ) { | |
| require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' ); | |
| } | |
| class My_Example_List_Table extends WP_List_Table { |
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
| add_action( 'admin_bar_menu', 'admin_bar_menu_visitsite', 999 ); | |
| function admin_bar_menu_visitsite( $wp_admin_bar ) { | |
| if ( current_user_can( 'manage_options' ) ) { | |
| $wp_admin_bar->add_node( | |
| array( | |
| 'id' => 'visitsite', | |
| 'title' => 'Visit Site', | |
| 'href' => site_url(), | |
| 'meta' => array( 'class' => 'visitsite_adminbar', 'target' => '_blank' ), |
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
| add_filter('cbxwpbookmark_list_admin_columns', 'cbxwpbookmark_list_admin_columns_hide_user_id', 10, 1); | |
| function cbxwpbookmark_list_admin_columns_hide_user_id($columns = array()){ | |
| if(isset($columns['user_id'])){ | |
| unset($columns['user_id']); | |
| } | |
| return $columns; | |
| } |
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
| { | |
| "version": "7", | |
| "about": "This is a Prepros (https://prepros.io) configuration file. You can commit this file to a git repo to backup and sync project configurations.", | |
| "config": { | |
| "proxy": { | |
| "enable": true, | |
| "target": "http://localhost/ambient", | |
| "useLocalAssets": false | |
| }, | |
| "reload": { |
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
| apply_filters('cbxwpbookmark_login_html', $cbxwpbkmark_login_html, $login_url, $redirect_url); | |
| add_filter('cbxwpbookmark_login_html', 'cbxwpbookmark_login_link_change', 10, 3); | |
| function cbxwpbookmark_login_link_change($cbxwpbkmark_login_html, $login_url, $redirect_url){ | |
| //$login_url is the redirect url you need | |
| $login_url = ''; //set your custom login url here | |
| $cbxwpbkmark_login_html = 'To login <a href="'.esc_url($login_url).'">click</a> here'; //set login form or html as need to display as your custom login |