'getNotifierImage' ]; public function getNotifierImage() { $imageId = $_GET[$this::NOTIFIER_IMAGE_ID]; $image = wp_get_attachment_image_src($imageId); $url = $image && count( $image ) > 0 ? $image[0] : ''; return wp_send_json_success( [ 'url' => $url ] ); } }