' . __( 'PMPro v2.0 Update', 'paid-memberships-pro' ) . ''; $content .= '

'. sprintf( __( "The Memberships menu has moved. Check out the new dashboard. The Membership Levels and Discount Codes pages can now be found under Settings.", 'paid-memberships-pro' ) , 'admin.php?page=pmpro-membershiplevels' ). '

'; $options = array( 'content' => $content, 'position' => array( 'edge' => 'left', 'align' => 'left', ), ); $globally_dismissed_pointers = get_option( 'pmpro_dismissed_wp_pointers', array() ); $user_dismissed_pointers = explode( ',', (string) get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) ); $dismissed_pointers = array_merge( $globally_dismissed_pointers, $user_dismissed_pointers ); if ( ! in_array( 'pmpro_v2_menu_moved', $dismissed_pointers ) ) { pmpro_build_pointer_script( $id, $options, __( 'Close', 'paid-memberships-pro' ) ); } } /** * Output script to generate our pointers. * * @param string id attribute for the pointer html. * * @param array $options Pointer options. * @param string $button1 Text for button 1. * @param string $button2 Text for button 2. * @param string $function JS code to run if button 2 is clicked. * @return void */ function pmpro_build_pointer_script( $id, $options, $button1, $button2 = false, $function = '' ) { ?>