Tribe__Editor__Blocks__Abstract::get_ajax_action()
Fetches the name for the block we are working with and converts it to the correct wp_ajax_{$action} string for us to Hook
Return
(string)
Source
File: src/Tribe/Editor/Blocks/Abstract.php
public function get_ajax_action() {
return str_replace( 'tribe/', 'tribe_editor_block_', $this->name() );
}
Changelog
| Version | Description |
|---|---|
| 4.8 | Introduced. |