Inpsyde\MultilingualPress\API\Languages::get_all_languages PHP 메소드

get_all_languages() 공개 메소드

Returns an array with objects of all available languages.
부터: 3.0.0
public get_all_languages ( ) : object[]
리턴 object[] The array with objects of all available languages.
    public function get_all_languages();

Usage Example

    /**
     * Print tab content and provide two hooks.
     *
     * @return void
     */
    public function render_content()
    {
        ?>
		<form action="<?php 
        echo $this->setting->url();
        ?>
" method="post">
			<input type="hidden" name="action" value="<?php 
        echo esc_attr($this->setting->action());
        ?>
" />
			<input type="hidden" name="id" value="<?php 
        echo esc_attr($this->blog_id);
        ?>
" />
			<?php 
        echo \Inpsyde\MultilingualPress\nonce_field($this->nonce);
        $siteoption = get_site_option('inpsyde_multilingual', []);
        echo '<table class="form-table mlp-admin-settings-table">';
        $this->show_language_options($siteoption, $this->languages->get_all_languages());
        $this->show_blog_relationships($siteoption);
        /**
         * Runs at the end of but still inside the site settings table.
         *
         * @param int $blog_id Blog ID.
         */
        do_action('mlp_blogs_add_fields', $this->blog_id);
        if (has_action('mlp_blogs_add_fields_secondary')) {
            _doing_it_wrong('mlp_blogs_add_fields_secondary', 'mlp_blogs_add_fields_secondary is deprecated, use mlp_blogs_add_fields instead.', '2.1');
        }
        /**
         * @see mlp_blogs_add_fields
         * @deprecated
         */
        do_action('mlp_blogs_add_fields_secondary', $this->blog_id);
        echo '</table>';
        submit_button();
        ?>
		</form>
		<?php 
    }
All Usage Examples Of Inpsyde\MultilingualPress\API\Languages::get_all_languages