ap_esc_subscriber_event( string $event )

Description #

Return escaped subscriber event name. It basically removes id suffixed in event name and only name.

Parameters #

  • $event
    string (Required) Event name.

Changelog #

VersionDescription
4.1.5Introduced.

Source #

File: includes/subscribers.php

function ap_esc_subscriber_event( $event ) {
	return false !== strpos( $event, '_' ) ? substr( $event, 0, strpos( $event, '_' ) ) : $event;
}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment