Plugin Directory

Changeset 2505632


Ignore:
Timestamp:
03/30/2021 03:16:21 AM (5 years ago)
Author:
serviceslbk
Message:

init 1.0.4

Location:
lbk-count-view/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • lbk-count-view/trunk/README.md

    r2495713 r2505632  
    44Tags: size view count, lbk-cv
    55Requires at least: 1.0
    6 Tested up to: 5.7
     6Tested up to: 5.6
    77Stable tag: 1.0
    8 Requires PHP: 8.0
     8Requires PHP: 7.4
    99License: GPLv2 or later
    1010License URI: https://www.gnu.org/licenses/gpl-2.0.html
  • lbk-count-view/trunk/count-view.php

    r2496433 r2505632  
    88 * @license GPL-2.0-or-later
    99 * @category plugin
    10  * @version 1.0.3
     10 * @version 1.0.4
    1111 *
    1212 * @wordpress-plugin
     
    1414 * Plugin URI:        https://lbk.vn/
    1515 * Description:       LBK Count View
    16  * Version:           1.0.3
    17  * Requires at least: 1.0.3
    18  * Requires PHP:      8.0
     16 * Version:           1.0.4
     17 * Requires at least: 1.0.4
     18 * Requires PHP:      7.4
    1919 * Author:            Briki - LBK
    2020 * Author             URI: https://facebook.com/vuong.briki
     
    5252         * @var string
    5353         */
    54         const VERSION = '1.0.0';
     54        const VERSION = '1.0.4';
    5555
    5656        /**
  • lbk-count-view/trunk/includes/class.admin.php

    r2493789 r2505632  
    3030            add_action( 'admin_menu', array( $this, 'menu' ) );
    3131            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' ) );
    3233        }
    3334
     
    100101            include LBK_CV_PATH . 'includes/admin-options-page.php';
    101102        }
     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        }
    102128    }
    103129    new lbkCv_Admin();
Note: See TracChangeset for help on using the changeset viewer.