Word Press




  • WP Scripts

    Paste the lines below into your wp-config.php file, just above the line /* That’s all, stop editing! Happy blogging. */, to either prevent theme and plugin files from being edited in your WordPress dashboard or to set the default theme for your website. Be sure to replace ‘your-theme-folder-name’ before saving the changes.

    Disallow Editing in Dashboard

    define( ‘DISALLOW_FILE_EDIT’, true );

    Define a Default Theme

    define( ‘WP_DEFAULT_THEME’, ‘your-theme-folder-name’ );

  • Execute shortcode

    do_shortcode(<string>)

    http://codex.wordpress.org/Function_Reference/do_shortcode

  • Shortcode in Widget / Sidebar

    To allow the shortcode to be executed if included in the widget area or in a sidebar, add the following line to your plugin file or in functions.php

    add_filter('widget_text', 'do_shortcode');

We use cookies to improve your experience. Choose what you want to allow.

Cookie Settings

⚙️