- WordPress core y plugins - Tema Twenty Twenty-Four configurado - Plugin allow-unfiltered-html.php simplificado - .gitignore configurado para excluir wp-config.php y uploads 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
66 lines
1020 B
PHP
Executable File
66 lines
1020 B
PHP
Executable File
<?php
|
|
/**
|
|
* Ad Parameters.
|
|
*
|
|
* @package AdvancedAds
|
|
* @author Advanced Ads <info@wpadvancedads.com>
|
|
* @since 1.48.2
|
|
*/
|
|
|
|
namespace AdvancedAds\Admin\Metaboxes;
|
|
|
|
use AdvancedAds\Constants;
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
/**
|
|
* Ad Parameters.
|
|
*/
|
|
class Ad_Parameters {
|
|
|
|
/**
|
|
* Get metabox id
|
|
*
|
|
* @return string
|
|
*/
|
|
public function get_box_id(): string {
|
|
return 'ad-parameters-box';
|
|
}
|
|
|
|
/**
|
|
* Hook into WordPress.
|
|
*
|
|
* @param Metabox_Ad $manager Manager instance.
|
|
*
|
|
* @return void
|
|
*/
|
|
public function register( $manager ): void {
|
|
add_meta_box(
|
|
$this->get_box_id(),
|
|
__( 'Ad Parameters', 'advanced-ads' ),
|
|
[ $manager, 'display' ],
|
|
Constants::POST_TYPE_AD,
|
|
'normal',
|
|
'high'
|
|
);
|
|
}
|
|
|
|
/**
|
|
* Get metaboxe view file
|
|
*
|
|
* @return string
|
|
*/
|
|
public function get_view(): string {
|
|
return ADVADS_ABSPATH . 'views/admin/metaboxes/ads/ad-parameters.php';
|
|
}
|
|
|
|
/**
|
|
* Return manual link
|
|
*
|
|
* @return array|string
|
|
*/
|
|
public function get_handle_link() {
|
|
return '';
|
|
}
|
|
}
|