Changeset 2505632
- Timestamp:
- 03/30/2021 03:16:21 AM (5 years ago)
- Location:
- lbk-count-view/trunk
- Files:
-
- 3 edited
-
README.md (modified) (1 diff)
-
count-view.php (modified) (3 diffs)
-
includes/class.admin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lbk-count-view/trunk/README.md
r2495713 r2505632 4 4 Tags: size view count, lbk-cv 5 5 Requires at least: 1.0 6 Tested up to: 5. 76 Tested up to: 5.6 7 7 Stable tag: 1.0 8 Requires PHP: 8.08 Requires PHP: 7.4 9 9 License: GPLv2 or later 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html -
lbk-count-view/trunk/count-view.php
r2496433 r2505632 8 8 * @license GPL-2.0-or-later 9 9 * @category plugin 10 * @version 1.0. 310 * @version 1.0.4 11 11 * 12 12 * @wordpress-plugin … … 14 14 * Plugin URI: https://lbk.vn/ 15 15 * Description: LBK Count View 16 * Version: 1.0. 317 * Requires at least: 1.0. 318 * Requires PHP: 8.016 * Version: 1.0.4 17 * Requires at least: 1.0.4 18 * Requires PHP: 7.4 19 19 * Author: Briki - LBK 20 20 * Author URI: https://facebook.com/vuong.briki … … 52 52 * @var string 53 53 */ 54 const VERSION = '1.0. 0';54 const VERSION = '1.0.4'; 55 55 56 56 /** -
lbk-count-view/trunk/includes/class.admin.php
r2493789 r2505632 30 30 add_action( 'admin_menu', array( $this, 'menu' ) ); 31 31 add_action( 'admin_init', array( $this, 'register_lbk_cv_general_settings') ); 32 add_filter( 'plugin_action_links_lbk-site-views/count-view.php', array( $this, 'lbk_settings_link' ) ); 32 33 } 33 34 … … 100 101 include LBK_CV_PATH . 'includes/admin-options-page.php'; 101 102 } 103 104 /** 105 * Add Setting link in plugin name bottom 106 * 107 * @access private 108 * @since 1.0 109 * @static 110 */ 111 public function lbk_settings_link( $links ) { 112 // Build and escape the URL. 113 $url = esc_url( add_query_arg( 114 'page', 115 'lbk-count-view', 116 get_admin_url() . 'options-general.php' 117 ) ); 118 // Create the link. 119 $settings_link = "<a href='$url'>" . __( 'Settings' ) . '</a>'; 120 // Adds the link to the end of the array. 121 array_push( 122 $links, 123 $settings_link 124 ); 125 126 return $links; 127 } 102 128 } 103 129 new lbkCv_Admin();
Note: See TracChangeset
for help on using the changeset viewer.