cptui_settings

Display our primary menu page.

Description

cptui_settings(); 

Usage

  1. if ( !function_exists( 'cptui_settings' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'custom-post-type-ui/inc/about.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = cptui_settings(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/inc/about.php  
  1. function cptui_settings() { 
  2. ?> 
  3. <div class="wrap about-wrap"> 
  4. <?php 
  5.  
  6. /** 
  7. * Fires inside and at the top of the wrapper for the main plugin landing page. 
  8. * @since 1.0.0 
  9. */ 
  10. do_action( 'cptui_main_page_start' ); ?> 
  11. <h1><?php esc_html_e( 'Custom Post Type UI', 'custom-post-type-ui' ); ?> <?php echo CPTUI_VERSION; ?></h1> 
  12.  
  13. <?php 
  14.  
  15. /** 
  16. * Fires after the main page `<h1>` heading tag. 
  17. * @since 1.3.0 
  18. */ 
  19. ?> 
  20.  
  21. <div class="about-text cptui-about-text"> 
  22. <?php esc_html_e( 'Thank you for choosing Custom Post Type UI! We hope that your experience with our plugin makes creating post types and taxonomies and organizing your content quick and easy.', 'custom-post-type-ui' ); ?> 
  23. </div> 
  24. <div class="cptui-badge"></div> 
  25.  
  26. <?php 
  27. /** 
  28. * Fires before the About Page changelog. 
  29. * @since 1.4.0 
  30. */ 
  31.  
  32. <h2><?php printf( esc_html__( "What's new in version %s", 'custom-post-type-ui' ), CPTUI_VERSION ); ?></h2> 
  33. <div class="changelog about-integrations"> 
  34. <div class="cptui-feature feature-section col three-col"> 
  35. <div> 
  36. <h2><?php esc_html_e( 'Renamed the Import/Export menu.', 'custom-post-type-ui' ); ?></h2> 
  37. <p><?php esc_html_e( 'As Custom Post Type UI has evolved, we have found need to rename one of the menus. The Import/Export menu has now been renamed "Tools" to better reflect the utilities provided there.', 'custom-post-type-ui' ); ?></p> 
  38. </div> 
  39. <div> 
  40. <h2><?php esc_html_e( 'Eliminated page refresh need for importing.', 'custom-post-type-ui' ); ?></h2> 
  41. <p><?php esc_html_e( 'Previously we eliminated page refresh need while creating new post types and taxonomies. We noticed this did not apply when importing settings. With this latest release, we have amended the issue.', 'custom-post-type-ui' ); ?></p> 
  42. </div> 
  43. <div class="last-feature"> 
  44. <h2><?php esc_html_e( 'Multiple issue fixes.', 'custom-post-type-ui' ); ?></h2> 
  45. <p><?php esc_html_e( 'We have fixed the following issues in this version. Added "action" as a reserved taxonomy name. Updated `get_terms()` handling for WordPress 4.5. Fixed PHP notices related to rewrite indexes, that were present since version 1.0.6. Prevented triggering a slug conversion when tabbing through the edit screen.', 'custom-post-type-ui' ) ?></p> 
  46. </div> 
  47. </div> 
  48. </div> 
  49.  
  50. <div class="extranotes"> 
  51. <?php 
  52.  
  53. /** 
  54. * Fires inside a div for extra notes. 
  55. * @since 1.3.0 
  56. */ 
  57. do_action( 'cptui_main_page_extra_notes' ); ?> 
  58. </div> 
  59. </div> 
  60. <?php