Submit
Path:
~
/
home
/
getwphos
/
www
/
techniquetechs
/
wp-content
/
plugins
/
woocommerce
/
src
/
Internal
/
Admin
/
ProductForm
/
File Content:
Section.php
<?php /** * Handles product form section related methods. */ namespace Automattic\WooCommerce\Internal\Admin\ProductForm; /** * Section class. */ class Section extends Component { /** * Constructor * * @param string $id Section id. * @param string $plugin_id Plugin id. * @param array $additional_args Array containing additional arguments. * $args = array( * 'order' => (int) Section order. * 'title' => (string) Section description. * 'description' => (string) Section description. * ). * @throws \Exception If there are missing arguments. */ public function __construct( $id, $plugin_id, $additional_args ) { parent::__construct( $id, $plugin_id, $additional_args ); $this->required_arguments = array( 'title', ); $missing_arguments = self::get_missing_arguments( $additional_args ); if ( count( $missing_arguments ) > 0 ) { throw new \Exception( sprintf( /* translators: 1: Missing arguments list. */ esc_html__( 'You are missing required arguments of WooCommerce ProductForm Section: %1$s', 'woocommerce' ), join( ', ', $missing_arguments ) ) ); } } }
Submit
FILE
FOLDER
Name
Size
Permission
Action
Component.php
2946 bytes
0644
ComponentTrait.php
717 bytes
0644
Field.php
1298 bytes
0644
FormFactory.php
7486 bytes
0644
Section.php
1180 bytes
0644
Subsection.php
196 bytes
0644
Tab.php
1234 bytes
0644
N4ST4R_ID | Naxtarrr