Closed wadadanet closed 6 years ago
"inline_mixed" can not be used with "AdminPageFramework_Widget". Field Types in "inline_mixed" are displayed, but can not be saved. Also, the repeatable function does not appear to work.
class My_Widget extends AdminPageFramework_Widget { public function load( $oAdminWidget ) { $array = array( "1" => 1, "2" => 2, "3" => 3, ); $this->addSettingField( array( 'field_id' => 'my_id', 'type' => 'inline_mixed', 'title' => 'title', 'repeatable' => true, 'sortable' => true, 'content' => array( array( 'title' => 'select', 'field_id' => 'select', 'type' => 'select', 'label' => $array, ), ), ) ); } public function content( $sContent, $aArguments, $aFormData ) { } } new My_Widget( 'my widget', array( 'description' => 'description', ) );
URL: /wp-admin/widgets.php
I could confirm the problem. Thanks for the report.
"inline_mixed" can not be used with "AdminPageFramework_Widget". Field Types in "inline_mixed" are displayed, but can not be saved. Also, the repeatable function does not appear to work.
Versions
Code
Step
URL: /wp-admin/widgets.php
1. Select 2
2. Save
3. It returns to the state where "1" is selected