Changeset 1976448
- Timestamp:
- 11/18/2018 11:47:44 PM (7 years ago)
- Location:
- wps-complete
- Files:
-
- 7 edited
-
assets/banner-772x250.png (modified) (previous)
-
assets/icon-128x128.png (modified) (previous)
-
trunk/README.txt (modified) (4 diffs)
-
trunk/includes/WPS_template_wp_support.php (modified) (6 diffs)
-
trunk/includes/tools/WPS_dev_user_tab.php (modified) (1 diff)
-
trunk/includes/wp_support_tab.php (modified) (1 diff)
-
trunk/wps_complete.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
wps-complete/trunk/README.txt
r1957803 r1976448 1 1 === WPS complete === 2 Contributors: fullmoonfriday 2 Contributors: fullmoonfriday, wpscomplete.com 3 3 Tags: tools, user, support, 4 4 Requires at least: 3.0.1 5 Tested up to: 4.9.8 6 Requires PHP: 7.1 7 Stable tag: 4.3 5 Tested up to: 4.9.8 6 Stable tag: 4.9.8 8 7 License: GPLv2 or later 9 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 14 13 15 14 This is the first version to provide a toolbox of services and information regarding the development and maintenance of your WordPress site. This version contains the following: 16 17 15 1. Current plugins Active / Inactive / MU plugns 18 2. Cron Jobs currently installed.19 3. Server specifications including current PHP version, Memory and uploap limit + more20 4. Current user Specs21 5. Techinical information about your WordPress Installation.16 1. Cron Jobs currently installed. 17 1. Server specifications including current PHP version, Memory and uploap limit + more 18 1. Current user Specs 19 1. Techinical information about your WordPress Installation. 22 20 23 21 == Installation == … … 36 34 == Screenshots == 37 35 38 1. The WordPress Install 36 1. The WordPress Installation 39 37 2. The Server data 40 38 3. The plugins … … 44 42 == Changelog == 45 43 44 = 0.6 = 45 46 1. Current user tab - Added user meta information 47 1. All roles tab - Added new tab to display all current roles 48 1. Image Sizes tab - Displays registered current registered image sizes 49 1. Menus tab - Displays the current menus loaded in the admin area 50 1. Include submenu for Admin Menus if active. 51 46 52 = 0.5 = 47 53 First version for visualisation and preparing further development. -
wps-complete/trunk/includes/WPS_template_wp_support.php
r1957770 r1976448 2 2 3 3 /** 4 * Template prepared for addin tfeatures in next version.4 * Template prepared for adding features in next version. 5 5 * 6 6 * @package Central setup for admin area … … 16 16 function wpsc_support_menu() { 17 17 $page_title = "Your support"; 18 $menu_title = "WPS complete";19 $capability = ' read';18 $menu_title = "WPS Complete"; 19 $capability = 'manage_options'; 20 20 $menu_slug = "WPS"; 21 21 $function = "wpsc_support_plugin_options"; 22 22 $icon_url = 'dashicons-feedback'; 23 23 $position = 4; 24 // add_options_page( 'My Plugin Options', 'My Plugin', 'manage_options', 'my-unique-identifier', 'my_plugin_options' );24 25 25 add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position ); 26 27 if ( is_plugin_active( 'wps_admin_menus/wps_admin_menus.php' ) ) { 28 //add the menu if the admin menus plugin is active 29 add_submenu_page( 'WPS', __( 'Admin Menu', 'wpsc' ), __( 'Admin Menu', 'wpsc' ), 'manage_options', 'wpsc_menu', 'wpsc_admin_menus_setup' ); 30 } 26 31 } 27 32 … … 114 119 case 'cron': 115 120 case 'current_user': 121 case 'user_roles': 116 122 case 'system': 117 123 case 'plugins': 118 124 case 'wordpress': 125 case 'registered_image_sizes': 126 case 'menus': 119 127 $tabs['plugins'] = 'Plugins'; 120 128 $tabs['cron'] = 'Cron Job'; 121 129 $tabs['system'] = 'System'; 122 130 $tabs['current_user'] = 'Current User'; 131 $tabs['user_roles'] = 'User roles'; 123 132 $tabs['wordpress'] = 'Wordpress'; 133 $tabs['registered_image_sizes'] = 'Image Sizes'; 134 $tabs['menus'] = 'Menus'; 124 135 break; 125 136 } … … 174 185 case 'cron': 175 186 case 'current_user': 187 case 'user_roles': 176 188 case 'system': 177 189 case 'plugins': 178 190 case 'wordpress': 191 case 'registered_image_sizes': 179 192 wpsc_admin_tabs('tools'); 180 193 break; … … 243 256 case 'current_user': 244 257 wpsc_sub_tabs( 'current_user' ); 258 echo '<br/>'; 259 echo '<pre>' . print_r( get_user_meta( get_current_user_id() ), true ) . '</pre>'; 245 260 include "tools/WPS_dev_user_tab.php"; 261 break; 262 case 'user_roles': 263 wpsc_sub_tabs( 'user_roles' ); 264 global $wp_roles; 265 echo '<pre>' . print_r( $wp_roles, true ) . '</pre>'; 266 break; 267 case 'registered_image_sizes': 268 wpsc_sub_tabs( 'registered_image_sizes' ); 269 global $_wp_additional_image_sizes; 270 echo '<h3>' . 'Current registered images sizes' . '</h3>'; 271 echo '<p>' . "New sizes are registered with:" . "</p>"; 272 echo "<code>" . 'add_image_size( string $name, int $width, int $height, bool|array $crop = false )' . '</code>'; 273 echo "<p><code> wp_get_attachment_image_src( $attachment->ID, 'attached-image') </code> is to retreive the original attahcment file" . '</p>'; 274 echo '<pre>' . print_r( $_wp_additional_image_sizes, true ) . '</pre>'; 246 275 break; 247 276 case 'system': … … 309 338 include "WPS_template_admin_ref_notes_tab.php"; 310 339 break; 340 case 'menus': 341 wpsc_sub_tabs($_GET['tab']); 342 include "tools/WPS_dev_menu_tab.php"; 343 break; 311 344 } 312 345 echo '</div>'; -
wps-complete/trunk/includes/tools/WPS_dev_user_tab.php
r1957770 r1976448 1 1 <?php if( current_user_can( 'manage_options' ) ){ //admin only ?> 2 2 3 <h4>Current logged in user</h4>4 3 5 4 <?php 6 5 6 /** 7 * Display user role in page 8 * 9 * @param string $hook Page hook. 10 * 11 * @return void 12 */ 13 function wpsc_get_user_role( $user = null ) { 14 $user = $user ? new WP_User( $user ) : wp_get_current_user(); 15 return $user->roles ? $user->roles[0] : false; 16 } 17 18 ?> 19 20 <h4>Current logged in user role: <?php echo wpsc_get_user_role() ?></h4> 21 <?php 7 22 $data = get_userdata( get_current_user_id() ); 8 9 23 if ( is_object( $data) ) { 10 24 $current_user_caps = $data->allcaps; 11 // print it to the screen 12 echo '<pre>' . print_r( $current_user_caps, true ) . '</pre>'; 25 echo '<pre>' . print_r( $data->allcaps , true ) . '</pre>'; 13 26 } 14 27 } -
wps-complete/trunk/includes/wp_support_tab.php
r1957770 r1976448 6 6 <div class="admin_text"> 7 7 <p>Welcome to the first version of WordPress Support Complete plugin</p> 8 <p>WPS complete is an initiative to get you the best support for all areas of Wordpress. Minor bug fixes, design, updates, maintenance, and complete plugin development can be sourced direct through your wordpress backend. Please get in touch at WPScomplete.comfor additional feature requests.</p>8 <p>WPS complete is an initiative to get you the best support for all areas of Wordpress. Minor bug fixes, design, updates, maintenance, and complete plugin development can be sourced direct through your wordpress backend. Please get in touch at <a href="https://wpscomplete.com/" >WPScomplete.com</a> for additional feature requests.</p> 9 9 </div> 10 10 -
wps-complete/trunk/wps_complete.php
r1957770 r1976448 6 6 Description: Toolbox for development and maintenance support in WordPress 7 7 Author: WPScomplete.com 8 Version: 1. 08 Version: 1.1 9 9 Author URI: https://wpscomplete.com 10 10 */
Note: See TracChangeset
for help on using the changeset viewer.