pods framework - Define option outside wp-config.php (on WordPress.com)

Using the PODS plugin.I need to add nested shortcode support which normally would be in the wp-config.php, but wordpre

Using the PODS plugin. I need to add nested shortcode support which normally would be in the wp-config.php, but wordpress does not allow editing the core WordPress files.

The change is:

define('PODS_SHORTCODE_ALLOW_SUB_SHORTCODES', true);

Is there an alternate way of defining this and achieving similar functionality?

Using the PODS plugin. I need to add nested shortcode support which normally would be in the wp-config.php, but wordpress does not allow editing the core WordPress files.

The change is:

define('PODS_SHORTCODE_ALLOW_SUB_SHORTCODES', true);

Is there an alternate way of defining this and achieving similar functionality?

Share Improve this question asked Jun 15, 2019 at 17:52 Mike CroweMike Crowe 1112 bronze badges 4
  • Don't understand. The wp-config.php file can be modified by the end user. Any WP updates will not affect that file. There is an area that you can use for your own DEFINEs in there. – Rick Hellewell Commented Jun 15, 2019 at 18:03
  • 1 "wordpress does not allow editing the core WordPress files" – Mike Crowe Commented Jun 16, 2019 at 0:31
  • Oops. Missed that part. Thanks. The answer below might work, though. Although I am not a wordpress user - I host my own sites. – Rick Hellewell Commented Jun 16, 2019 at 1:26
  • afaik, "wordpress also does not allow using plugins" – is your site selfhosted using WordPress or hosted by WordPress? – Michael Commented Jun 17, 2019 at 0:29
Add a comment  | 

1 Answer 1

Reset to default 1

OK, for those who need, you can do the following:

  • Install Code Snippets
  • In a code snippet:

    add_filter( 'init', function( ) { define('PODS_SHORTCODE_ALLOW_SUB_SHORTCODES', true); });

That will define it without modifying wp-config.php

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745398782a4626004.html

相关推荐

  • pods framework - Define option outside wp-config.php (on WordPress.com)

    Using the PODS plugin.I need to add nested shortcode support which normally would be in the wp-config.php, but wordpre

    8小时前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信