Yoast_Product::get_text_domain PHP Method

get_text_domain() public method

public get_text_domain ( ) : string
return string
        public function get_text_domain()
        {
            return $this->text_domain;
        }

Usage Example

コード例 #1
0
        /**
         * If the update check returned a WP_Error, show it to the user
         */
        public function show_update_error()
        {
            if ($this->wp_error === null) {
                return;
            }
            ?>
			<div class="error">
			<p><?php 
            printf(__('%s failed to check for updates because of the following error: <em>%s</em>', $this->product->get_text_domain()), $this->product->get_item_name(), $this->wp_error->get_error_message());
            ?>
</p>
			</div>
	<?php 
        }
All Usage Examples Of Yoast_Product::get_text_domain