Support » Plugin: ACF: Sidebar Selector » Deleted all my theme files!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I highly doubt this….

    After looking at the code I don’t see anything here wordpress or native php that has capability of deleting files. Maybe I’m overlooking something though. When you make claims like this try to be more descriptive in your situation. In case it was actually this plugin, it isn’t a very helpful support thread by just saying “deleted all my files”. When did this occur? On install? What other plugins were active? There are lots of things you could offer for people to help your situation as well as their own by preventing this from happening to other people.

    Regardless hopefully you do backups of your files!

    Here is the entire v5 version. These all appear to be core ACF functions. Pretty basic. You sure you didn’t make some sort of mistake??

    class acf_field_sidebar_selector extends acf_field {
    	function __construct() {
    		$this->name = 'sidebar_selector';
    		$this->label = __( 'Sidebar Selector', 'acf' );
    		$this->category = __( "Choice",'acf' );
    		$this->defaults = array(
    			'allow_null' => '1',
    			'default_value' => ''
    	function render_field_settings( $field ) {
    		acf_render_field_setting( $field, array(
    			'label'			=> __('Allow Null?','acf-sidebar_selector'),
    			'type'			=> 'radio',
    			'name'			=> 'allow_null',
    			'layout'  =>  'horizontal',
    			'choices' =>  array(
    				'1' => __('Yes', 'acf'),
    				'0' => __('No', 'acf'),
    		acf_render_field_setting( $field, array(
    			'label'			=> __('Default Value','acf-sidebar_selector'),
    			'type'			=> 'text',
    			'name'			=> 'default_value',
    	function render_field( $field ) {
    			<select name='<?php echo $field['name'] ?>'>
    				<?php if ( !empty( $field['allow_null'] ) ) : ?>
    					<option value=''><?php _e( 'Select a Sidebar', 'acf' ) ?></option>
    				<?php endif ?>
    					foreach( $wp_registered_sidebars as $sidebar ) :
    					$selected = ( ( $field['value'] == $sidebar['id'] ) || ( empty( $field['value'] ) && $sidebar['id'] == $field['default_value'] ) ) ? 'selected="selected"' : '';
    					<option <?php echo $selected ?> value='<?php echo $sidebar['id'] ?>'><?php echo $sidebar['name'] ?></option>
    				<?php endforeach; ?>
    new acf_field_sidebar_selector();
    Plugin Author danielpataki


    Hi There,

    Sorry for not reacting to this, I wasn’t receiving notifications. There is definitely no way this plugin can delete your files, unless your website was hacked and malicious code was inserted.

    file manipulation is not needed for most plugins, and is definitely not needed for this plugin. We have no functions or anything else that could cause this.

    I also recommend taking a look at the other plugins you had installed. I would also safely rule out any big ones like WooCommerce or Jetpack.

    Hope you had a backup 🙁


Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Deleted all my theme files!’ is closed to new replies.