Tribe__Tickets__Attendees::load_pointers( $hook )
Loads the WP-Pointer for the Attendees screen.
Contents
Parameters
- $hook
-
(Required)
Source
File: src/Tribe/Attendees.php
public function load_pointers( $hook ) {
if ( $hook != $this->page_id ) {
return;
}
$dismissed = explode( ',', (string) get_user_meta( get_current_user_id(), 'dismissed_wp_pointers', true ) );
$pointer = null;
if ( version_compare( get_bloginfo( 'version' ), '3.3', '>' ) && ! in_array( 'attendees_filters', $dismissed ) ) {
$pointer = array(
'pointer_id' => 'attendees_filters',
'target' => '#screen-options-link-wrap',
'options' => array(
'content' => sprintf( '<h3> %s </h3> <p> %s </p>', esc_html__( 'Columns', 'event-tickets' ), esc_html__( 'You can use Screen Options to select which columns you want to see. The selection works in the table below, in the email, for print and for the CSV export.', 'event-tickets' ) ),
'position' => array( 'edge' => 'top', 'align' => 'right' ),
),
);
wp_enqueue_script( 'wp-pointer' );
wp_enqueue_style( 'wp-pointer' );
}
wp_localize_script( $this->slug(), 'AttendeesPointer', $pointer );
}
Changelog
| Version | Description |
|---|---|
| 4.6.2 | Introduced. |