wordpress/wp-content/plugins/fakerpress/inc/class-fp-admin.php
/**
	 * Creates the whole view inside of the FakerPress Administration object
	 *
	 * @since 0.1.0
	 *
	 * @return void
	 */
Creates the whole view inside of the FakerPress Administration object
@since 0.1.0

@return void
Creates the whole view inside of the FakerPress Administration object @since 0 . 1 . 0 @return void
public function _action_set_admin_view() {
		if ( ! self::$in_plugin ){
			return;
		}
		$view = (object) array(
			'slug' => Variable::super( INPUT_GET, 'view', 'file', self::$menus[0]->view ),
			'path' => null,
		);
		if ( ! file_exists( Plugin::path( "view/{$view->slug}.php" ) ) ){
			$view->slug = 'error';
		}
		$view->path = Plugin::path( "view/{$view->slug}.php" );
		$view->menu = null;
		foreach ( self::$menus as &$menu ) {
			if ( $menu->view !== $view->slug ){
				continue;
			}
			$view->menu = $menu;
		}
		self::$view = apply_filters( 'fakerpress.view', $view );
		do_action( 'fakerpress.view.request', self::$view );
		do_action( 'fakerpress.view.request.' . self::$view->slug, self::$view );
	}
public function _action_set_admin_view ( ) { if ( ! self :: $ in_plugin ) { return ; } $ view = ( object ) array ( 'slug' => Variable :: super ( INPUT_GET , 'view' , 'file' , self :: $ menus [ 0 ] -> view ) , 'path' => null , ) ; if ( ! file_exists ( Plugin :: path ( " view/ { $ view -> slug } .php " ) ) ) { $ view -> slug = 'error' ; } $ view -> path = Plugin :: path ( " view/ { $ view -> slug } .php " ) ; $ view -> menu = null ; foreach ( self :: $ menus as & $ menu ) { if ( $ menu -> view !== $ view -> slug ) { continue ; } $ view -> menu = $ menu ; } self :: $ view = apply_filters ( 'fakerpress.view' , $ view ) ; do_action ( 'fakerpress.view.request' , self :: $ view ) ; do_action ( 'fakerpress.view.request.' . self :: $ view -> slug , self :: $ view ) ; }
Creates the whole view inside of the FakerPress Administration object
 @since 0.1.0
Creates the whole view inside of the FakerPress Administration object @since 0 . 1 . 0
// Default Page of the plugin // First we check if the file exists in our plugin folder, otherwhise give the user an error // Define the path for the view we // Define Menu when possible // Set the Admin::$view