wp_super_cache_wptouch_admin()
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
wp_super_cache_wptouch_admin();
Код wp_super_cache_wptouch_admin() wp super cache wptouch admin WPSCache 1.12.4
<?php function wp_super_cache_wptouch_admin() { global $cache_wptouch, $wp_cache_config_file, $valid_nonce; $cache_wptouch = '' === $cache_wptouch ? '0' : $cache_wptouch; if ( isset( $_POST['cache_wptouch'] ) && $valid_nonce ) { if ( $cache_wptouch === (int) $_POST['cache_wptouch'] ) { $changed = false; } else { $changed = true; } $cache_wptouch = (int) $_POST['cache_wptouch']; wp_cache_replace_line( '^ *\$cache_wptouch', "\$cache_wptouch = '$cache_wptouch';", $wp_cache_config_file ); } $id = 'wptouch-section'; ?> <fieldset id="<?php echo $id; ?>" class="options"> <h4><?php _e( 'WPTouch', 'wp-super-cache' ); ?></h4> <form name="wp_manager" action="" method="post"> <label><input type="radio" name="cache_wptouch" value="1" <?php if ( $cache_wptouch ) { echo 'checked="checked" '; } ?>/> <?php _e( 'Enabled', 'wp-super-cache' ); ?></label> <label><input type="radio" name="cache_wptouch" value="0" <?php if ( ! $cache_wptouch ) { echo 'checked="checked" '; } ?>/> <?php _e( 'Disabled', 'wp-super-cache' ); ?></label> <?php echo '<p>' . __( 'Provides support for <a href="https://wordpress.org/plugins/wptouch/">WPTouch</a> mobile theme and plugin.', 'wp-super-cache' ) . '</p>'; if ( isset( $changed ) && $changed ) { if ( $cache_wptouch ) { $status = __( 'enabled', 'wp-super-cache' ); } else { $status = __( 'disabled', 'wp-super-cache' ); } echo '<p><strong>' . sprintf( __( 'WPTouch support is now %s', 'wp-super-cache' ), $status ) . '</strong></p>'; } echo '<div class="submit"><input class="button-primary" ' . SUBMITDISABLED . 'type="submit" value="' . __( 'Update', 'wp-super-cache' ) . '" /></div>'; wp_nonce_field( 'wp-cache' ); ?> </form> </fieldset> <?php }