src/Presets/CarbonFields.php
protected function addHooks( $directory ) {
		$hooks_filepath = $this->path( $directory, 'app', 'hooks.php' );

		$this->appendUniqueStatement(
			$hooks_filepath,
			<<<'EOT'

/**
 * Carbon Fields
 */
EOT
		);

		$this->appendUniqueStatement(
			$hooks_filepath,
			<<<'EOT'
add_action( 'after_setup_theme', 'app_bootstrap_carbon_fields', 100 );
EOT
		);

		$this->appendUniqueStatement(
			$hooks_filepath,
			<<<'EOT'
add_action( 'carbon_fields_register_fields', 'app_bootstrap_carbon_fields_register_fields' );
EOT
		);

		$this->appendUniqueStatement(
			$hooks_filepath,
			<<<'EOT'
add_filter( 'carbon_fields_map_field_api_key', 'app_filter_carbon_fields_google_maps_api_key' );
EOT
		);
	}
protected function addHooks( $directory ) {
		$hooks_filepath = $this->path( $directory, 'app', 'hooks.php' );

		$this->appendUniqueStatement(
			$hooks_filepath,
			<<<'EOT'

/**
 * Carbon Fields
 */
EOT
		);

		$this->appendUniqueStatement(
			$hooks_filepath,
			<<<'EOT'
add_action( 'after_setup_theme', 'app_bootstrap_carbon_fields', 100 );
EOT
		);

		$this->appendUniqueStatement(
			$hooks_filepath,
			<<<'EOT'
add_action( 'carbon_fields_register_fields', 'app_bootstrap_carbon_fields_register_fields' );
EOT
		);

		$this->appendUniqueStatement(
			$hooks_filepath,
			<<<'EOT'
add_filter( 'carbon_fields_map_field_api_key', 'app_filter_carbon_fields_google_maps_api_key' );
EOT
		);
	}
protected function addHooks ( $ directory ) { $ hooks_filepath = $ this -> path ( $ directory , 'app' , 'hooks.php' ) ; $ this -> appendUniqueStatement ( $ hooks_filepath , 
			<<<'EOT'

/**
 * Carbon Fields
 */
EOT ) ; $ this -> appendUniqueStatement ( $ hooks_filepath , 
			<<<'EOT'
add_action( 'after_setup_theme', 'app_bootstrap_carbon_fields', 100 );
EOT ) ; $ this -> appendUniqueStatement ( $ hooks_filepath , 
			<<<'EOT'
add_action( 'carbon_fields_register_fields', 'app_bootstrap_carbon_fields_register_fields' );
EOT ) ; $ this -> appendUniqueStatement ( $ hooks_filepath , 
			<<<'EOT'
add_filter( 'carbon_fields_map_field_api_key', 'app_filter_carbon_fields_google_maps_api_key' );
EOT ) ; }
Add hook statements

@param  string $directory
@return void
Add hook statements