This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

Classic_Editor::init()

Initialize hooks


Source

File: includes/libs/admin/editor/classic-editor.class.php

	private function init(){
		// create edit meta boxes
		add_action( 'admin_head', [
			$this,
			'add_meta_boxes'
		] );

		// shortcode modal window output
		add_action( 'admin_footer', [
				$this,
				'shortcode_modal'
		] );

		// add tinymce plugin
		add_action( 'admin_head', [
				$this,
				'tinymce'
		] );

		// assets needed in various pages
		add_action( 'admin_enqueue_scripts', [
				$this,
				'post_edit_assets'
		] );

		// post thumbnails
		add_filter( 'admin_post_thumbnail_html', [
				$this,
				'post_thumbnail_meta_panel'
		], 10, 2 );

		add_action(
		    'admin_footer',
            function(){
		        ?>
<script>
    ( function( $ ){

        $(document).ready( function(){

            $('.toggler-checkbox').on(
                'click',
                function(){
                    var _class = $(this).data('hide_elements');

                    if( $(this).is(':checked') ){
                        $( _class ).hide();
                    }else{
                        $( _class ).show();
                    }
                }
            );
        })

    }(jQuery) );
</script>
                <?php
            }
        );
	}

Start your video site now!

Manage and coordinate your Vimeo channels, albums or videos with your WordPress website. Perfect fit for membership, portfolio, online courses or any type of video collection.

Get Vimeotheque PRO!