The popular open-source contract for web professionals by Stuff & Nonsense
- Originally published: 23rd December 2008
- Revised date: March 15th 2016
- Original post
| /* | |
| * Profile Builder Edit Profile Link in single-userlisting visible only for users with the edit_users permission | |
| * Usage: [pb-edit-profile-link link="http://www.example.com/edit-profile" title="User Profile"] | |
| */ | |
| add_shortcode('pb-edit-profile-link', 'func_pb_edit_profile_link'); | |
| function func_pb_edit_profile_link( $atts ){ | |
| if ( !isset( $atts['link'] ) || !isset( $atts['title'])){ | |
| return ''; | |
| } |
| <?php | |
| function foundation_pagination($before = '', $after = '') { | |
| global $wpdb, $wp_query; | |
| $request = $wp_query->request; | |
| $posts_per_page = intval(get_query_var('posts_per_page')); | |
| $paged = intval(get_query_var('paged')); | |
| $numposts = $wp_query->found_posts; | |
| $max_page = $wp_query->max_num_pages; | |
| if ( $numposts <= $posts_per_page ) { return; } | |
| if(empty($paged) || $paged == 0) { |
| ssh-keygen -E md5 -lf ~/.ssh/id_rsa.pub |
| { | |
| "repositories": [ | |
| { | |
| "type": "package", | |
| "package": { | |
| "name": "advanced-custom-fields/advanced-custom-fields-pro", | |
| "version": "5.0", | |
| "type": "wordpress-plugin", | |
| "dist": { | |
| "type": "zip", |