PluginProbe
WP Coder – Insert & Manage Code Snippets / 3.2
WP Coder – Insert & Manage Code Snippets v3.2
4.5.1 1.1 2.3.1 2.3.2 2.4.1 2.5.1 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 3.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.1 3.1.1 3.2 3.2.1 3.3 3.4 3.5 3.5.1 All 39 releases
← All changes | includes/pages/2.settings.php +17 -1 3.13.2 View file →
@@ -19,9 +19,18 @@
19 19 $item_title = __( 'Update code', 'wpcoder' ) . ' ID: ' . $item_id;
20 20 } elseif ( $action === 'duplicate' && ! empty( $item_id ) ) {
21 21 $item_title = __( 'Duplicate the code from', 'wpcoder' ) . ' ID: ' . $item_id;
22 22 }
23 -$license_page = add_query_arg( ['page' => WPCoder::SLUG . '-license' ], admin_url( 'admin.php' ) )
23 +$license_page = add_query_arg( ['page' => WPCoder::SLUG . '-license' ], admin_url( 'admin.php' ) );
24 +$add_url = add_query_arg( [
25 + 'page' => WPCoder::SLUG . '-settings',
26 + 'action' => 'new'
27 +], admin_url( 'admin.php' ) );
28 +
29 +$all_codes_url = add_query_arg( [
30 + 'page' => WPCoder::SLUG ,
31 +], admin_url( 'admin.php' ) );
32 +
24 33 ?>
25 34
26 35 <div class="wowp-header-wrapper">
27 36 <?php DashboardInitializer::header(); ?>
@@ -27,8 +36,15 @@
27 36 <?php DashboardInitializer::header(); ?>
28 37
29 38 <div class="wowp-header-title">
30 39 <h2><?php echo esc_html( $item_title ); ?></h2>
40 + <a href="<?php echo esc_url( $add_url ); ?>" class="button button-primary button-large">
41 + + <?php esc_html_e( 'Add New', 'wpcoder' ); ?>
42 + </a>
43 +
44 + <a href="<?php echo esc_url( $all_codes_url ); ?>" class="button button-secondary button-large">
45 + ⇐ <?php esc_html_e( 'All Codes', 'wpcoder' ); ?>
46 + </a>
31 47
32 48 </div>
33 49 </div>
34 50