- 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>
23 lines
799 B
PHP
Executable File
23 lines
799 B
PHP
Executable File
<?php
|
|
/**
|
|
* The view to render the option.
|
|
*
|
|
* @package AdvancedAds
|
|
* @author Advanced Ads <info@wpadvancedads.com>
|
|
* @since 1.48.2
|
|
*
|
|
* @var array $roles Array of user roles.
|
|
* @var array $hide_for_roles Array of roles that should not see ads.
|
|
*/
|
|
|
|
?>
|
|
<div id="advads-settings-hide-by-user-role">
|
|
<?php foreach ( $roles as $_role => $_display_name ) : ?>
|
|
<label>
|
|
<input type="checkbox" value="<?php echo esc_attr( $_role ); ?>" name="<?php echo esc_attr( ADVADS_SLUG ); ?>[hide-for-user-role][]"<?php checked( in_array( $_role, $hide_for_roles, true ), true ); ?>>
|
|
<?php echo esc_html( $_display_name ); ?>
|
|
</label>
|
|
<?php endforeach; ?>
|
|
</div>
|
|
<p class="description"><?php esc_html_e( 'Choose the roles a user must have in order to not see any ads.', 'advanced-ads' ); ?></p>
|