Plugin Directory

Changeset 3104739

Timestamp:
06/19/2024 07:02:01 PM (5 weeks ago)
Author:
Muhammad Rehman
Message:

Released WP Hooks Finder bug fix v1.3.1

Location:
wp-hooks-finder/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-hooks-finder/trunk/readme.txt

    r3104409 r3104739  
    44Requires at least: 4.0
    55Tested up to: 6.5.4
    6 Stable tag: 1.3
     6Stable tag: 1.3
    77License: GPLv2
    88License URI: GPLv2
     
    3838
    3939== Changelog ==
     40
     41
     42
    4043= 1.3 =
    4144- **NEW** - New Look & Feel
  • wp-hooks-finder/trunk/wp-hooks-finder.php

    r3104409 r3104739  
    22/**
    33 * Plugin Name: WP Hooks Finder
    4  * Version: 1.3
     4 * Version: 1.3
    55 * Description: Easily enable/disable hooks and filters which are running in the page. A menu "WP Hooks Finder" will be added in your wordpress admin bar menu where you can display all the hooks and filters
    66 * Author: Muhammad Rehman
     
    1111
    1212define( 'WPHF_PLUGIN_PATH', plugin_dir_url( __FILE__ ) );
    13 define( 'WPHF_PLUGIN_VERSION', '1.3' );
     13define( 'WPHF_PLUGIN_VERSION', '1.3' );
    1414
    1515Class WP_Hooks_Finder {
     
    3333    */
    3434    public function wphf_style() {
    35        wp_enqueue_style( 'wphf-style', WPHF_PLUGIN_PATH . 'assets/css/style.css' );   
    36        wp_enqueue_style( 'wphf-style-hook', WPHF_PLUGIN_PATH . 'assets/css/hooks-style.css' );   
    37        wp_enqueue_script( 'wphf-script-hook', WPHF_PLUGIN_PATH . 'assets/js/script.js', array(), WPHF_PLUGIN_VERSION, true );   
     35
     36       
     37        wp_enqueue_style( 'wphf-style', WPHF_PLUGIN_PATH . 'assets/css/style.css' );
     38        if( ( isset( $_GET['wphf'] ) && $_GET['wphf'] == 1 ) ||
     39        ( isset( $_GET['wphfa'] ) && $_GET['wphfa'] == 1 ) ||
     40        ( isset( $_GET['wphff'] ) && $_GET['wphff'] == 1 ) )  {
     41           
     42            wp_enqueue_style( 'wphf-style-hook', WPHF_PLUGIN_PATH . 'assets/css/hooks-style.css' );
     43            wp_enqueue_script( 'wphf-script-hook', WPHF_PLUGIN_PATH . 'assets/js/script.js', array(), WPHF_PLUGIN_VERSION, true );
     44        }
    3845    }
    3946
Note: See TracChangeset for help on using the changeset viewer.