• Resolved anoorani

    (@anoorani)


    Hi All,

    I am trying to use code-manager’s hooks such as ‘wpda_before_list_table’ in my environment.
    I am finding that the callback are not getting invoked and I am not sure why.
    What I found is that my simple php code runs, but not the callbacks.
    I have couple of thoughts, but was not sure:

    1. My code-manager list view does not say code-manager premium? Do I need premium to have this functionality? I am on a local machine, if that makes any difference.

    2. I have setup WordPress using ‘localwp’ It allows me to easily setup multiply WordPress sites locally and give me access to each site with https://<site-name&gt;.local I don’t access the site with localhost or 127.0.0.1. Not sure if that has any impact?

    Any help would be greatly appreciate it.

    Thanks,

    <?php
    wp_get_current_user();
    $current_user_id = wp_get_current_user();
    echo "Current User ID: " . $current_user_id->user_login;
    
    function addhello( $self ) {
    	echo 'Hiiii!!!!';
    }
    add_action( 'wpda_before_simple_form', 'addhello', 10, 1);
    add_action( 'wpda_after_simple_form', 'addhello', 10, 1);
    add_action( 'wpda_before_list_table', 'addhello', 10, 1);
    add_action( 'wpda_after_list_table', 'addhello', 10, 1);
    ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Premium vs regular’ is closed to new replies.