public function loadShortcodes() {
		add_action(
			'tablepress_run', function () {
				if ( \Pressbooks\Modules\Export\Export::isFormSubmission() ) {
					\TablePress::$model_options = \TablePress::load_model( 'options' );
					\TablePress::$model_table = \TablePress::load_model( 'table' );
					$GLOBALS['tablepress_frontend_controller'] = \TablePress::load_controller( 'frontend' );
				}
			}
		);
		add_filter(
			'tablepress_edit_link_below_table', function ( $show ) {
				if ( \Pressbooks\Modules\Export\Export::isFormSubmission() ) {
					return false;
				}
				return $show;
			}
		);
	}
public function loadShortcodes() {
		add_action(
			'tablepress_run', function () {
				if ( \Pressbooks\Modules\Export\Export::isFormSubmission() ) {
					\TablePress::$model_options = \TablePress::load_model( 'options' );
					\TablePress::$model_table = \TablePress::load_model( 'table' );
					$GLOBALS['tablepress_frontend_controller'] = \TablePress::load_controller( 'frontend' );
				}
			}
		);
		add_filter(
			'tablepress_edit_link_below_table', function ( $show ) {
				if ( \Pressbooks\Modules\Export\Export::isFormSubmission() ) {
					return false;
				}
				return $show;
			}
		);
	}
public function loadShortcodes ( ) { add_action ( 'tablepress_run' , function ( ) { if ( \ Pressbooks \ Modules \ Export \ Export :: isFormSubmission ( ) ) { \ TablePress :: $ model_options = \ TablePress :: load_model ( 'options' ) ; \ TablePress :: $ model_table = \ TablePress :: load_model ( 'table' ) ; $ GLOBALS [ 'tablepress_frontend_controller' ] = \ TablePress :: load_controller ( 'frontend' ) ; } } ) ; add_filter ( 'tablepress_edit_link_below_table' , function ( $ show ) { if ( \ Pressbooks \ Modules \ Export \ Export :: isFormSubmission ( ) ) { return false ; } return $ show ; } ) ; }
Add actions and filters to TablePress to load shortcodes in the admin context.
Add actions and filters to TablePress to load shortcodes in the admin context .