Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter dustyryan85

    (@dustyryan85)

    Perfect, thanks @lorro and @kursora!

    The only thing I’m missing now is to make it work well with variable products.
    Would you be willing to show me how to add variation IDs to the shortcode args??
    Took me forever just to get the id arg to work, lol, I’m learning.
    I would REALLY appreciate it!!

    Ex. [woocommerce_price id=”123″ variation=”456″]

    Forum: Hacks
    In reply to: Trouble with WP_List_Table
    Thread Starter dustyryan85

    (@dustyryan85)

    Oh and here is how the data is stored in the database. Im sure it will help to see this.
    a:1:{s:13:"70.193.96.113";i:1447706565;}

    Thread Starter dustyryan85

    (@dustyryan85)

    I knew I had the syntax wrong but for the life of me I couldnt figure out how to fix it lol

    It works perfectly now!!

    Thank you so much! You are awesome!!

    Thread Starter dustyryan85

    (@dustyryan85)

    Basically I’m asking:

    function custom_toolbar() {
    	global $wp_admin_bar;
    
    	$args = array(
    		'id'     => 'report_button',
    		'title'  => __( 'Report a Bug', 'text_domain' ),
    		'href'   => 'HOW TO GET A DYNAMIC LINK IN HERE',
    		'meta'   => array(
    			'target'   => '_blank',
    		),
    	);
    	$wp_admin_bar->add_menu( $args );
    
    }
    add_action( 'wp_before_admin_bar_render', 'custom_toolbar', 999 );
Viewing 4 replies - 1 through 4 (of 4 total)