Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    thanks for your post, and sorry for the trouble.

    The reason for this is indeed that TablePress does not register its Shortcodes in the admin area (because it never needs them there), to save to memory and processing time.

    As you apparently might need the Shortcodes in the admin area for those other plugins, I suggest that you try to initialize the manually, by adding this to the “functions.php” file in your theme:

    function run_tablepress_shortcodes_in_admin() {
    	if ( is_admin() ) {
    		TablePress::$model_options = TablePress::load_model( 'options' );
    		TablePress::$model_table = TablePress::load_model( 'table' );
    		$GLOBALS['tablepress_frontend_controller'] = TablePress::load_controller( 'frontend' );
    	}
    }
    add_action( 'tablepress_run', 'run_tablepress_shortcodes_in_admin' );

    Regards,
    Tobias

    Thread Starter dinamiko

    (@dinamiko)

    Hi Tobias,

    Works like a charm, thank you very much ??

    Best Regards,
    Emili

    Plugin Author TobiasBg

    (@tobiasbg)

    Hi,

    no problem, you are very welcome! ?? Good to hear that this helped!

    Best wishes,
    Tobias

    P.S.: In case you haven’t, please rate TablePress here in the plugin directory. Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘doesn't work from admin’ is closed to new replies.