michaeluno / admin-page-framework

Facilitates WordPress plugin and theme development.
http://admin-page-framework.michaeluno.jp/
Other
337 stars 71 forks source link

Field Arguments #265

Closed mnajafzadeh closed 7 years ago

mnajafzadeh commented 7 years ago

Hi,

Is there any solution to turn-off the "Field Arguments" without turning of the WP_DEBUG constant?

Admin Page Framework 3.8.12 (This information will be disabled when WP_DEBUG is set to false in wp-config.php.)

Thank you.

mnajafzadeh commented 7 years ago

Found the solution:

'show_debug_info' => false

mnajafzadeh commented 7 years ago

Sorry,

I couldn't find anything on documentation! I still get "Debug Info: Admin Page Framework 3.8.12" on MetaBox pages. Is there any solution like:

$this->addSubMenuItems( array( 'title' => __( 'Settings', 'social-board-admin' ), 'page_slug' => 'my_settings', **'show_debug_info' => false** ),

But, for MetaBoxes?

github-wp_debug

Thank you.

michaeluno commented 7 years ago

You can directory modify the property value. Add this in the setUp() method.

    $this->oProp->bShowDebugInfo = false;
mnajafzadeh commented 7 years ago

Hi,

I did this before I mention here but, it didn't work!

mnajafzadeh commented 7 years ago

Sorry, I was adding this into a wrong file. It is OK now.

Thank you too much.